`prev+character` should be `prev + character` as per [pep8](http://legacy.python.org/dev/peps/pep-0008/)