def equal_zip(*args):
    """
    Zip which also verifies that all input lists are of the same length
    """
    # make sure that all lists are of the same length
    assert len(set(map(len, args))) == 1, "lists are of different lengths {}".format(args)
    return zip(*args)