I did some more testing and found two more places that should be handling bytes instead of strings. I have updated the file on my web server: http://www.jsw.gen.nz/mythtv/tv_grab_nz-py