fix pydiction not work when in Mac