def checkUnique(l):
    """Make sure that l does not contain repeated elements"""
    for i, item1 in enumerate(l):
        for j, item2 in enumerate(l):
            if i != j and item1 == item2:
                raise Exception('Repeated item ' + str(item1))
