import re


def split_qn(qn):
    """Split a qualified tag name or return None if namespace not present"""
    m = re.match('\{(.*)\}(.*)', qn)
    if m:
        return m.group(1), m.group(2)
    return None