How about this?
```
name_components = name.split('.')
name_components[0] = rename
new_name = '.'.join(name_components)
```