Setting the FFI library as a special variable that I could pass around everywhere was a mistake. Apparently cffi just takes a magic name and uses that behind the scenes
Tweaking callback functions. I think I have the basic idea down for handling before/after calls, even if it isn't pretty. Except that most of the callbacks I just updated need to have window-specific setters