Reset PythonDialectsTokenSetProvider in a few more places in order to clean up its cache