[fix] whitespace duplication fix in nonhtml outputs
[fix] pep8