pep8ified and pyflakes compatible
added more requirements for tests
pyflakes
added full py.test support