Fixed get_var_value error.  Should not convert to int.

Change-Id: I19a2e9edae9cf37e25bc5cc392c1075a80afa153
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/gen_print.py b/lib/gen_print.py
index 227c942..7cfd503 100755
--- a/lib/gen_print.py
+++ b/lib/gen_print.py
@@ -1334,8 +1334,8 @@
         var_name = get_arg_name(None, 1, 2)
 
     if robot_env:
-        var_value = int(BuiltIn().get_variable_value("${" + var_name + "}",
-                        default))
+        var_value = BuiltIn().get_variable_value("${" + var_name + "}",
+                                                 default)
     else:
         var_value = getattr(__builtin__, var_name, default)
 
@@ -1488,14 +1488,14 @@
 
     # Define the "q" (i.e. quiet) version of the given print function.
     func_def[0] = "def q" + func_name + "(*args):"
-    func_def[1] = "    if get_var_value(None, 0, \"quiet\"): return"
+    func_def[1] = "    if int(get_var_value(None, 0, \"quiet\")): return"
     pgm_definition_string = '\n'.join(func_def)
     gp_debug_print(pgm_definition_string)
     exec(pgm_definition_string)
 
     # Define the "d" (i.e. debug) version of the given print function.
     func_def[0] = "def d" + func_name + "(*args):"
-    func_def[1] = "    if not get_var_value(None, 0, \"debug\"): return"
+    func_def[1] = "    if not int(get_var_value(None, 0, \"debug\")): return"
     pgm_definition_string = '\n'.join(func_def)
     gp_debug_print(pgm_definition_string)
     exec(pgm_definition_string)