I've seen a similar post here however it refers to Python 2.6 and I was hoping there was an easier way.
From reading the thread it seems the best way is to just replace all my print statements with sys.stdout.write(s + '\n') ?
I was hoping there was a nicer way that allowed me still to use print