ffi: fix flake8/pep8 violations