Improvements, tox, pytest cmdclass and initial tests