ticket:3 migration, tests finished, pep8 errors