Sorry satshabad. Forgot newlines make a difference.
Merge pull request #73 from uiri/master

sys is imported; print != sys.stdout.write