Python 3 fix

In Python 3, sys.platform is 'linux' rather than 'linux2'.
Merge pull request #9 from catch22/patch-1

Python 3 fix