Port ctx.py (context-related functions) to CFFI
Use cffi in setup.py, incl/exclude the right files