There are (and were) no double newlines within either of the script's functions.
As to the .encode('utf-8'), I've found a way to do it without that. FWIW, the issue is that Python doesn't know the proper encoding when redirecting, so it has to be told that explicitly, as described here:
There are (and were) no double newlines within either of the script's functions.
As to the .encode('utf-8'), I've found a way to do it without that. FWIW, the issue is that Python doesn't know the proper encoding when redirecting, so it has to be told that explicitly, as described here:
http:// stackoverflow. com/questions/ 4545661/ unicodedecodeer ror-when- redirecting- to-file