Replace closures with cdef'd class methods
Merge pull request #41 from danielrichman/cython-noclosures

Cython can't cdef closures