fixed pydiction