Fixed tests
PEP-8 and PyCharm inspections