reformat some code
prevent absolute cimports from trying relative imports
fix "from . cimport xyz" without package or module name in the "from" part