[bugfix] Careless mistakes printing out values. Correcting to sys.stdout...