Use cython for binding.

Cython is much easier and doesn't depend on extra libraries. Have also
made some changes to the interface.