#NEWLINE# def _get_nptg( self , f ) : #NEWLINE# #INDENT# localities = defaultdict ( dict ) #NEWLINE# csvfile = csv . reader ( f ) #NEWLINE# csvfile . next ( ) #NEWLINE# for line in csvfile : #NEWLINE# #INDENT# if ( line [ 2 ] . lower ( ) not in localities [ line [ 0 ] ] ) : #NEWLINE# #INDENT# localities [ line [ 0 ] ] [ line [ 2 ] . lower ( ) ] = csvfile [ 1 ] #NEWLINE# #UNINDENT# #UNINDENT# return localities