added tox config
Changed classes to new style.