I would do the conversion to int here, rather than in the if statement. As currently implemented, the extra conversions kind of swamp the if condition. Something like:

```python
    versionParts = [int(i) for i in version.split('.')]
```
This will work assuming a sufficiently recent version of python (where recent > python 2.0, so we're safe)