Move the tests into a separate test file
Suppress some pep8 warnings
Add smoke tests for main() and most of the rest
make preview-pypi-description: use newer restview feature
Prettier names for temporary files