The goal is to have a representation for the type in this case the mime type.

For example
for this mime type ("application/xml ; q=2;b=other")

the format should be

('application', 'xml', {'q':'1','b':'other',})