Remove pydiction setting and add pymode setting