try to fix vim crash cause by python thread