Fix most PEP 8 issues
Switch to using ffi.callback as a decorator