#NEWLINE# def read_wordcount_output( p ) : #NEWLINE# #INDENT# count = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for line in p . open ( 'r' ) : #NEWLINE# #INDENT# ( k , v ) = line . strip ( ) . split ( ) #NEWLINE# count [ k ] = v #NEWLINE# #UNINDENT# return count