Changed the Cython generator into a class.
Merge pull request #6 from PythonDynamics/cython-class

Cython class