Repository cleanup, conversion to setuptools, flake8
Remove some dead code
Remove an unused import