use cpython.dict functions