Pure Python Mode
Cython provides language constructs to let the same file be either interpreted or compiled. This is accomplished by the same "magic" module cython that directives use and which must be imported. This is available for both .py and .pyx files.
This is accomplished via special functions and decorators and an (optional) augmenting .pxd file. See http://docs.cython.org/src/tutorial/pure.html