Let's use [cffi](https://cffi.readthedocs.org/en/release-0.6/) to talk to the c library files instead of duplicating functionality in python. Would solve #5