Added stdout redirection to main
Add requirements.txt to tox deps
Fixed import