pep8 compliance, fixes/updates to utils