SWC python bindings, using cffi