BUG: Fix linker for Python 3; minor PEP8 stuff