Add some platform/version checks to setup.py
Remove xrange