replace nose with py.test
flake8