Change mimetype kwarg to content_type.