Added a check that the script ends in '*.py'.
Authored by: bugman 2010-12-17
Parent: [r11878]
Child: [r11880]