pep8 says this line is too long.  Also we could simplify it:
```python
if self.version is not None:
    return '%s.%d' % (self.name, self.version)
else:
    return self.name
```