Multiple fixes to looping.rst