ENH: Ported script template to Python