def guess_extension(type, strict=True):
 if (_db is None):
  init()
 return _db.guess_extension(type, strict)

def guess_extension ( type , strict = True ) : if ( _db is None ) : init ( ) return _db . guess_extension ( type , strict )
guess the extension for a file based on its mime type .