Manual creation of multipart-form/form-data in Python