Defining new classes
>>> class AClass:
...     def amethod(self):
...          print ‘Hi there!’
...
>>> a = AClass()
>>> a.amethod()
Hi there!