Not sure but it look like the scripts use IO redirection, which could not be standard output/error inside the Jenkins flow execution. Check if you can spawn a bash shell that run this python script on it's own and exit after. You may want to find a way to check the results into your bash command. Maybe this will help the script to properly redirect the IO. Again I'm not sure about his but it would be my first guess for this.
-- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a0e63d33-99f7-46b6-baf8-eb4a9f8c5742%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.