code: def list_packages(request):
      
      session = DBSession()
      names = [p.name for p in Package.all(session, order_by=Package.name)]
      return names
docs: Retrieve a list of the package names registered with the package index.
      Returns a list of name strings.