PY3 long Fix to int

if sys.version_info[0] == 2: # Python2
numvalue = long(value)
else:
numvalue = int(value)