Switched to Cython and Python 3