def load_soups(config):
 soups = {}
 for (page, path) in config[u'sources'].items():
  with open(path, u'rb') as orig_file:
   soups[page] = beautiful_soup(orig_file.read().decode(u'utf-8'))
 return soups

def load_soups ( config ) : soups = { } for ( page , path ) in config [ u'sources' ] . items ( ) : with open ( path , u'rb' ) as orig_file : soups [ page ] = beautiful_soup ( orig_file . read ( ) . decode ( u'utf-8' ) ) return soups
generate beautifulsoup ast for each page listed in config .