> data = "GIF89a(..." > > Is there a potentially automated path from where the code is today to > something Python 3 (and 2to3) will like? Not sure how you'll fix these; I personally always provided a b() function that will do the right thing in both 2.x and 3.x. This can get eventually replaced by a b prefix. Regards, Martin