Made the PySpark shell version checking compatible with Python 2.6.