I wrote a shell script that can periodically check a URL for updates. It can download and run another script to apply those updates, potentially overwriting the first script if the update mechanism needs to change. I needed a way to install the update script initially, so I wrote a Python script to read and escape each line of the update script, then generate an install script which can write the update script if it is not installed. Following me so far? Good.