I want to define some variables in .dir-locals.el, then I add a hook to python-mode-hook, in the hook, I want to read the variables defined in .dir-locals. The problem is that mode hook is called before loading .dir-locals.el
Any ideas to swap the loading sequence?