Update tr.py
Merge pull request #348 from mbaser/patch-1

Update tr.py