mimetypes module returns a tuple from guess_type. we want the first element which is the mimetype string.