Yes, if you have the script set to auto-start in the 'set python' command, it will direct its sys.stdout and sys.stderr output to the trace facility built into the system.
You can then view the results by connecting to the CLI of the device and enabling trace with 'set trace state=on'. This will cause the output to print out from the printf mask as a critical message. Since critical messages are on by default, you will not need to change the 'mask' parameter.
Hope this helps.