I don't care how "broken" my multi-line if statement is, I would never add Zope as a requirement.
Also, singleton (yuck) accessed via a helper function: yuck. Just import it.
This starts to make sense where OP professes fondness of XML: we have a Java developer!