Clean up some class vs. struct stuff in Cython.