Version information (using relative import)

Having version info is always a good idea.

In comparison with #89 it uses relative import.
Fixes some flake8 errors too on main.py.