mimetype
mimetypes.guess_all_extensions("text/html")
->['.htm', '.html', '.shtml']
mimetypes.guess_type("1.tar")
->('application/x-tar', None)
mimetypes.guess_all_extensions("text/html")
-> ['.htm', '.html', '.shtml']
mimetypes.guess_type("1.tar")
-> ('application/x-tar', None)