#NEWLINE# def _build_contest_kwargs( self , row , primary_type ) : #NEWLINE# #INDENT# '\n        Builds kwargs for specific contest\n\n        ' #NEWLINE# kwargs = { #NEWLINE# #INDENT# 'office' : primary_type [ 'officename' ] , #NEWLINE# 'primary_party' : row [ 'partycode' ] . strip ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# return kwargs