more functional dict.py