Switch expand-templates to python.