You can actually redirect stdout to a text file as demonstrated in this post, which allows you to use the print statement as you normally would. Far from ideal, but it works completely fine.
You can actually redirect stdout to a text file as demonstrated in this post, which allows you to use the print statement as you normally would. Far from ideal, but it works completely fine.