Be warned: I used the same script to automate changing all my comments to nonsense, but I found a couple of days later that Reddit had changed them all back.
It seems that there's an issue where Reddit rate-limits the comment editing, so many comments don't get edited. There are other versions of the script which add a 5 second delay to avoid getting limited.