added analyze.py for use in lesson novice/python/03-loop

Not ready for main repo, but all I have time for before tomorrow..