Use os.rename:
os.rename
import os os.rename('a.txt', 'b.kml')
Comment
Save my name, email, and website in this browser for the next time I comment.