fixed pressure log and some pep8