Learning portal shift register pattern code

I have created some code with numerous patterns for the shiftregister learning portal article
in case anyone had finished it and wanted to see the blinky lights in action
just import time and run the code in the shell window that pops up after you run the code given

import time

while True:
q=255
h=0
i=170
g=85
shiftout(q)
time.sleep(1)
for t in [0,1,0,2,0,4,0,8,0,16,0,32,0,64,0,128,0]:
shiftout(t)
time.sleep(0.2)
for s in [0,128,0,64,0,32,0,16,0,8,0,4,0,2,0,1,0]:
shiftout(s)
time.sleep(0.2)
for x in [255,127,63,31,15,7,3,1]:
shiftout(x)
time.sleep(0.1)
for y in [1,3,7,15,31,63,127,255]:
shiftout(y)
time.sleep(0.1)
for x in [255,127,63,31,15,7,3,1]:
shiftout(x)
time.sleep(0.1)
for y in [1,3,7,15,31,63,127,255]:
shiftout(y)
time.sleep(0.1)
q=255
h=0
i=170
g=85
shiftout(i)
time.sleep(0.7)
shiftout(g)
time.sleep(0.7)
shiftout(i)
time.sleep(0.7)
shiftout(g)
time.sleep(0.7)
for f in [0,129,195,231,255]:
shiftout(f)
time.sleep(0.1)
for j in [255,231,195,129,0]:
shiftout(j)
time.sleep(0.1)

    for f in [0,129,195,231,255]:
            shiftout(f)
            time.sleep(0.1)
    for j in [255,231,195,129,0]:
            shiftout(j)
            time.sleep(0.1)
    shiftout(q)
    time.sleep(1)
    shiftout(0)
    time.sleep(1)