pulled absence of bytes() in py2.5 fix from multiparthandler