def similar_lists(list1, list2, eps=1e-3):
    """Checks elementwise whether difference between two elements is at most some number"""
    return all(map(lambda pair: abs(pair[0]-pair[1])<eps, zip(list1, list2)))