setup.py: Fix relative links for PyPI
Fixed flake8 issues
formats: Added base class