Fix installation with --prefix

Also fix pep8 issues in setup.py.