'Return the message thread\'s parent thread.'

def get_parent_thread(self):

    thread = self.xml.find(('{%s}thread' % self.namespace))
    if (thread is not None):
        return thread.attrib.get('parent', '')
    return ''
