(urls)
return pool_outputs
returns list of each of ret values from parse()
    uses multiprocessing pool to parallelize the process
returns list of each of ret values from parse()
    uses multiprocessing pool to parallelize the process
returns list of each of ret values from parse () uses multiprocessing pool to parallelize the process
def split_work(urls):
    '''
    returns list of each of ret values from parse()
    uses multiprocessing pool to parallelize the process
    '''
    cpus = multiprocessing.cpu_count() * 2
    pool = multiprocessing.Pool(processes=cpus)
    pool_outputs = pool.map(parse, urls)
    pool.close()
    pool.join()
    logging.debug('All processes completed parsing')
    return pool_outputs
def split_work ( urls ) : cpus = multiprocessing . cpu_count ( ) * 2 pool = multiprocessing . Pool ( processes = cpus ) pool_outputs = pool . map ( parse , urls ) pool . close ( ) pool . join ( ) logging . debug ( 'All processes completed parsing' ) return pool_outputs