sorted words script and pickle