refs #17: flake8
refs #17: I guess ``.next`` isn't a thing on generator objects in 3.3
refs #17: stupid string buffers
refs #17: screw regex, collapse_html is still not working in python 3.3