use Cython to compile shrift.py