<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __getref(self, a, tns):
 """ Get the qualified value of attribute named 'a'."""

        s = self.root.get(a)
        if s is None:
            return s
        else:
            return qualify(s, self.root, tns)