Fix for script execution - the extension check for '.py' was incorrect!
Authored by: bugman 2010-12-17
Parent: [r11887]
Child: [r11889]