Rename Type with Python Script

You can use directly the Name property setter