def nt(node, tag):
    """ returns text of the tag or None if the
        tag does not exist """
    if node.find(tag) is not None and node.find(tag).text is not None:
        return node.find(tag).text
    else:
        return None