changed renaming method in rename.py