Added tests.
support Python 3, set up tox, Pyroma level 10.