code: def valid_file(cls, filename):
          
          return not os.path.isdir(filename) \
              and os.path.basename(filename).startswith('Session ') \
              and filename.endswith('.mqo')
docs: Check if the provided file is a valid file for this plugin.
  
          :arg filename: the path to the file to check.