move prettify to utils, pep8 fixes to utils