new_contents: class PackageDescription:
      def __init__(self, name, version=None, summary=None, url=None,
              author=None, author_email=None, license=None, description=None,
              platforms=None, packages=None, py_modules=None):
          # XXX: should we check that we have sequences when required
          # (py_modules, etc...) ?
  
          # Package metadata
          self.name = name
  
          if not version:
              # Distutils default
              self.version = '0.0.0'
          else:
              self.version = version
  
          self.summary = summary
          self.url = url
          self.author = author
          self.author_email = author_email
          self.license = license
          self.description = description
  
          if not platforms:
              self.platforms = []
          else:
              self.platforms = platforms
  
          # Package content
          if not packages:
              self.packages = []
          else:
              self.packages = packages
  
          if not py_modules:
              self.py_modules = []
          else:
              self.py_modules = py_modules
  
      def to_dict(self):
          d = {'name': self.name,
              'version': self.version,
              'description': self.summary,
              'url': self.url,
              'author': self.author,
              'author_email': self.author_email,
              'license': self.license,
              'long_description': self.description,
              'platforms': self.platforms,
              'py_modules': self.py_modules}
  
          return d
  
subject: add a dummy class to describe a python package.