python3 - <<'PY' import urllib.request def dg(rid,u): r=urllib.request.urlopen(u,timeout=120).read().decode('utf-8','replace') L=r.splitlines() fo=len(L) for i,x in enumerate(L): if x.startswith('step:'): fo=i break S=L[:fo] print('