def longify(listofints):
 if (sys.version_info.major < 3):
  return map(long, listofints)
 return listofints

def longify ( listofints ) : if ( sys . version_info . major < 3 ) : return map ( long , listofints ) return listofints
list of ints => list of longs .