changed deprecated keywords argument mimetype to content_type