Tried to fix MultiPartEncoder to work with Python3 and BytesIO.