fixes pep styling and pgo str append bug