Removed sys.stdout.flush()