Update looptest.py

Adds ability to backspace in prompt (still leaves trailing whitespace in output)