rm_template.py: fixed some problems
Merge branch 'master' of https://github.com/SPython/tpler