quote the shell in case it has a space
use /usr/bin/python not /usr/bin/env as this seems to confuse gridengine