add cffi wrapper to make ringfile usable from python