def METHOD_NAME(func, lis):
    """Python2/3 compatibility.
    replace map(int, list) with lmap(int, list) that always returns a list
    instead of an iterator. Otherwise conflicts with np.array in python3.
    """
    return list(map(func, lis))