You could try adding these two directives in your root htaccess file:
AddHandler python-program py
AddType application/python py
I can't say for sure that will fix the problem. Try it and see and if it still doesn't work, post your script if it's a simple one.