Added python class example

Added an example for writing a class in Python.