Replace custom templating system with Python format() in patchupdate.py.