Return True if an update is available on pypi

def check_update():
    """
    Return True if an update is available on pypi
    """
    r = requests.get("https://pypi.python.org/pypi/prof/json")
    data = r.json()
    if versiontuple(data['info']['version']) > versiontuple(__version__):
        return True
    return False