removed unwanted lines and ran thorugh autopep8