giant cleanup of the ffi imports to use the """ multiline syntax, added ...

...semicolons where they were missing