nit: why bother with the version_parts intermediate variable? Why not just
```python
return '.'.join(version.split('.')[:2])
```