small fix in working with multipart data and python 3