Try this
doc.Regenerate() z=[r_cent_l(e,ang) for e in elt] OUT = z
Had a similar problem not a long time ago.