Moved the cloud_init script code into an external file located in the machine settings folder. The template engine Jinja2 is used to read it and replace the template parameter with values. Added doc strings and a check if the account and machine names exist to the launch script. Switched remaining print statements to logger calls.