api and util pep8 cleanup

refs #87