Update looptest.py

Rationalized