formatting

made some indentation cleaner with a variable and removed pep8
compliance lines between functions
commented out log submission