ticket:3 Fixed PEP8. Fixed tests.