Replaced os.uname() by platform.uname() for windows compatibility. Replaced itervalues() by values() for python 3 compatibility.