Update script fixes

On Friday JakeM noticed that our chief/commander script never actually generates the static files. This should remedy the problem. It also contains some pep8 fixes for the script.

We probably want ops on hand to push this, or we risk breaking the update mechanism with no transparency into what caused the break.