Resolve the load order of python-mode-hook and dir-local