erp5_xhtml_style: rewrite logged_in ZPT in Python script