def asunicode(s, encoding='ascii'):
    if isinstance(s, unicode):
        return s
    return s.decode(encoding)
def asunicode(s, encoding='ascii'):
    if isinstance(s, unicode):
        return s
    return s.decode(encoding)