Don't crash if build_tokens_line() returns None; issue #306
Remove stdout check that fails under pypy.

This second E901 error actually only shows up in the test framework
and does not happen if you run the code within the Python interpreter.
Merge branch 'issue306'