Added looptest.py, doesnt work as expected