Removed sys.stdout writing