1. 5
  1.  

  2. 2

    For this particular use case, it would seem to me that the Python CFFI would be ideal, rather than having to write all that boiler plate code. Personally, I would have just Cythonized the Python version.