About editing file, we are sugguesting the python way rather than shell command.