force to stdout
@@ -6,7 +6,11 @@ import sys
import utilities.misc_common as util
import utilities.parse_user_params as parse_user_params
+if sys.version_info >= (3, 0, 0):
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w')
+else:
+ sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
+
class NetFactory(object):
