Update caretaker_framework.py

set(L) is not possible to index. this algorithm should work to remove duplicates
ex.
L = [1,2,3,4,4]
a = set(L)
print a
    set([1,2,3,4])
# if you try this you get an error
a[0]