how to get a list of file extensions for a general file type?,mimetypes.init()