dotted_path() now accounts for .tmpl as well as .py. The dotted path command now appends any selected text to the path.