Update tplser.py

Improved uninitiated variables detection.