Python 3 fix

In Python 3, sys.platform is 'linux' rather than 'linux2'.