For an Execute shell script action, you will need to include the full path to the python interpreter.
See, for example:
For more information, see the wiki Searching the Forum for Answers section.