def _get_latest_version(package):
    latest_version = None
    (code, body, _) = network.get(f'https://pypi.python.org/pypi/{package}/json')
    if ((code == HTTP_OK) and (body is not None)):
        json_package = json.loads(body)
        latest_version = json_package['info']['version']
    return latest_version
def _get_latest_version(package):
    latest_version = None
    (code, body, _) = network.get(f'https://pypi.python.org/pypi/{package}/json')
    if ((code == HTTP_OK) and (body is not None)):
        json_package = json.loads(body)
        latest_version = json_package['info']['version']
    return latest_version