Yes ! 
The dist module is the old version of linux_distribution, dist was deprecated in python 2.6.

So here I check the python version to load the good "distribution" module.