More sane fix for stream multipart encoding in python3