Foreign Function Interface for Python 2 calling C code