def unicoder(p):
    """ Make sure a Unicode string is returned """
    if isinstance(p, unicode):
        return p
    if isinstance(p, str):
        return decoder(p)
    else:
        return unicode(decoder(p))
def unicoder ( p ) : if isinstance ( p , unicode ) : return p if isinstance ( p , str ) : return decoder ( p ) else : return unicode ( decoder ( p ) )
Make sure a Unicode string is returned