Anatomy of a Python Loop