fix some doctest/pep8 complaints