Hmmm...you might think about also allowing bytearrays everywhere it says "data must be a bytestring". Maybe there's some problem with that (I haven't done a lot of Python3-style IO yet), but I don't think there is, and if they are to be allowed, it should be explicitly mentioned, IMO.
Kevin Horn