def save_dictionary(worddict, wordcount, loc):
 with open(loc, 'wb') as f:
  pkl.dump(worddict, f)
  pkl.dump(wordcount, f)

def save_dictionary ( worddict , wordcount , loc ) : with open ( loc , 'wb' ) as f : pkl . dump ( worddict , f ) pkl . dump ( wordcount , f )
save a dictionary to the specified location .