convert python to cython to speed things up
created some modules