So I needed to rename a bunch of files. I needed to add the size of the file as a postfix. Same name just an adition of 16x16 which when doing it by hand is tedious. So this little script was created. You have to dump it into the same folder as the files you are working with, and you have to put the path in walkPath. I could have it pull the current directory from the os but that would take work.
walkPath = r"some disk path"
for d in os.walk(walkPath):
dirpath, dirnames, filenames = d
for a in filenames:
aSplit = a.split(".")