revert model back from Cython for debugging