def shatter_seq(seq, size):
    """shatters a sequnce into fragments of length = size.
    Output list of fragments."""
    fragments = []
    i = 0
    while i+size <= len(seq):
        fragments.append(seq[i:i+size])
        i += 1
#    print('shatter', fragments)
    return fragments