Cython port of Pymunk