Update changelog and fix pep8 errors