<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ns(self, prefix, tag):
 """ Given a prefix and an XML tag, output the qualified name for proper namespace handling on output. """

        return etree.QName(self.prefixes[prefix], tag)