Update tlv_tag.py

Updation is done to fix some issues