possible fix for lack of bytes() in py2.5