Auto-format, remove unused imports

Just ridding the code of IDE warnings, etc. Also ran autopep8.