started using xrange - which yields

runs faster when yielding, from now on i'll be using xrange