fix test_plain output

i.e. make it consistent between python 2.7 and python 3