Hello
With perl version, I use the redirection of the listing flux such like:
telemac2d name.cas > out.txt
it will write the listing in the file out.txt
with python, it should work also. Then, if you want to change directory, you can add it in the path of the out.txt.
Remember that option -s gives you the listing written in a file .sortie (for both perl and python)
I hope that this helps
With my best regards
Riadh