code: def all_versions(req):
      
      import requests
      url = "https://pypi.python.org/pypi/" + req + "/json"
      return tuple(requests.get(url).json()["releases"].keys())
docs: Get all versions of req from PyPI.