Fixed version comparisons to work with Python 3.
Merge pull request #128 from peterhil/fix-version-cmps

Fixed version comparisons to work with Python 3.