use Python 2.4 compatible script; update Smarty templates