def rm_unicode(obj):
    if isinstance(obj, dict):
        d = {}
        for (k, v) in obj.iteritems():
            d[rm_unicode(k)] = rm_unicode(v)
        return d
    elif isinstance(obj, list):
        return [rm_unicode(i) for i in obj]
    elif isinstance(obj, unicode):
        return obj.encode('ascii', 'ignore')
    else:
        return obj
def rm_unicode(obj):
    if isinstance(obj, dict):
        d = {}
        for (k, v) in obj.iteritems():
            d[rm_unicode(k)] = rm_unicode(v)
        return d
    elif isinstance(obj, list):
        return [rm_unicode(i) for i in obj]
    elif isinstance(obj, unicode):
        return obj.encode('ascii', 'ignore')
    else:
        return obj