Unfortunately, there is no documentation of this feature yet -- we are planning some for the next release. All I can say is to look at the python script itself.
However, from experience and what I see of your case, I believe the python script is correct and has created the file HPC_STDIN within the temporary directory (have a look at it).
So I believe the problem is with the job scheduler not understanding the content of the file HPC_STDIN, or not reading it properly.
To confirm what I am saying, cd yourself into the temporary directory, verify that the file HPC_STDIN is there, and run manually the scheduler command (without any python):
job submit /stdin:HPC_STDIN
Once this is solved, then you can try the standard python command.
Note: the HPC_STDIN files I showed you included a command at the beginning of the file:
This helps defining the directives for the scheduler -- I am guessing you may need such directive but for your scheduler.
Maybe you can find somewhere on the web an example of such file that would work with your scheduler --
I think you are very close to make this work.
Hope this helps,
Sébastien.