Fix pep8 issues and remove test_sgd from white list