Add tox.ini.
Pep8 and flakes fixes.
Python 3 flakes fix.
Packaging fix.
Support dict in constructor.