Jenkins not printing output of python script in console

I have a python script(myscript.py) as follows: #!/bin/python import os import optparse import subprocess import sys sys.stdout.flush() print(“I can see this message on Jenkins console output”) cmd=”…