Normalizing sys.platform

As of Python3, platform names are normalized a bit more than they are in Python2. linux2, linux3 are reduced to linux. This pull request normalizes name in a similar way, reducing the platform to one of : linux, darwin, and windows.