seq_l = [[1, 1, 1, 1, 1, 1], [4, 1, 4, 1, 4, 1], [1, 2, 10, 1, 2, 10], [1, 
    1, 1, 1, 1, 4, 1, 4, 1, 20, 9, 8, 1, 1, 1, 1, 1, 4, 1, 4, 1, 20, 9, 8],
    [2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 4], [1, 1, 1, 13, 21, 45,
    3, 3, 1, 16, 4, 1, 4, 1, 1, 1, 24, 15, 1, 1, 1, 13, 21, 45, 3, 3, 1, 16,
    4, 1, 4, 1, 1, 1, 24, 15], [1, 1, 1, 3, 28, 1, 1, 1, 3, 28, 67, 25, 1, 
    1, 1, 3, 28, 1, 1, 1, 3, 28, 67, 25]]

def rep_len(seq):
    s_len = len(seq)
for i in range(1, s_len - 1):
    if s_len % i == 0:
        j = s_len / i
if seq == j * seq[:i]:
    return i
[rep_len(seq) for seq in seq_l]
Python finding patterns within large group of numbers?