flake8 style conventions fixes
refactor __repr__