modify pydiction