added testify to requirements
used PyLint to clean code