renameConsole -> rename_append; + special cases for hidden files and directories

Because the file extension for ".python_history" is not "python_history".