Style fixes

- python style fixes
- rework package structure
- fix imports
- fix tests like table.py
- formatting
- some documentation