Refactoring due to tox compatibility and setup.py creation