def convertToStringRecursively(inobject):
    if isinstance(inobject, dict):
        return {convertToStringRecursively(key) : convertToStringRecursively(value)
                for key, value in inobject.iteritems()}
    elif isinstance(inobject, list):
        return [convertToStringRecursively(x) for x in inobject]
    elif isinstance(inobject, unicode):
        return str(inobject)
    else:
        return inobject
custom object decoder to get rid of unicode from objects loaded with json.loads
dataset/ETHPy150Open ufora/ufora/ufora/util/Unicode.py/convertToStringRecursively