def contains(small, big):
    for i in range(1 + len(big) - len(small)):
        if small == big[i:i + len(small)]:
            return i, i + len(small) - 1
return False
Testing if a list contains another list with Python