template-reverse-python