fixed rename scripts for Python2.6