fixes py.test call in travis
fixes pep8 issues