move dict.py to tools dir