def check_new_version_available(this_version):
 pypi_url = 'https://pypi.python.org/pypi/Zappa/json'
 resp = requests.get(pypi_url, timeout=1.5)
 top_version = resp.json()['info']['version']
 if (this_version != top_version):
  return True
 else:
  return False

def check_new_version_available ( this_version ) : pypi_url = 'https://pypi.python.org/pypi/Zappa/json' resp = requests . get ( pypi_url , timeout = 1.5 ) top_version = resp . json ( ) [ 'info' ] [ 'version' ] if ( this_version != top_version ) : return True else : return False
checks if a newer version of zappa is available .