I want to change a.txt to b.kml.
a.txt
b.kml
Use os.rename:
os.rename
import os os.rename('a.txt', 'b.kml')
1.4m articles
1.4m replys
5 comments
56.9k users