old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  
  class OldStyle:
  
      def __init__(self, name, description):
          self.name = name
          self.description = description
  
  
  class NewStyle(object):
  
      def __init__(self, name, description):
          self.name = name
          self.description = description
  
  
  if __name__ == '__main__':
      old = OldStyle('old', 'Old style class')
      print old
      print dir(old)
  
      new = NewStyle('new', 'New style class')
      print type(new)
      print dir(new)
  
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  
  class OldStyle:
  
      def __init__(self, name, description):
          self.name = name
          self.description = description
  
  
  class NewStyle(object):
  
      def __init__(self, name, description):
          self.name = name
          self.description = description
  
  
  if __name__ == '__main__':
      old = OldStyle('old', 'Old style class')
      print old
      print type(old)
      print dir(old)
      print '---------------------------------------------------------'
      new = NewStyle('new', 'New style class')
      print new
      print type(new)
      print dir(new)
  
  
subject: update code