how to change name of python file code example Example: python change filename import os os.rename('a.txt', 'b.kml')