def _do_first_level_encoding(m):
    s = ord(m.group(0))
    return (string.uppercase[(s >> 4)] + string.uppercase[(s & 15)])
def _do_first_level_encoding(m):
    s = ord(m.group(0))
    return (string.uppercase[(s >> 4)] + string.uppercase[(s & 15)])