The following code will generate different values, on the same Windows 10 OS, based on what version of python you are using:
import sys
info = sys.getwindowsversion()
major = info.major
On a Windows 10 machine, in python2: major == 6 (which is not the correct value)
On a Windows 10 machine, in python3: major == 10 (the correct value)
I'm in the unfortunate position of needing to use python2 here, but the values it is returning are not accurate. Is there a module, available in python2, that will give me the accurate values for windows version information?