Add output argument to python script and use it in the wrapper bash script to make sure output for terminal is displayed if necessary.