Update xmltotelesis.py

Cleaning string and control flow formatting