I suggest you don't put __diff__ and __version__ of root into variables, since it provides no benefit in readability, nor performance.