Replaced with stdout.write with print