Use content_type keyword argument instead of mimetype

DeprecationWarning: Using mimetype keyword argument is deprecated, use content_type instead