def toJSON(self):
    obj = {}
    for k in this.__dict__:
        val = getattr(self, k)
        if (type(val) in [types.MethodType, types.FunctionType]):
            continue
        obj[k] = getattr(self, k)
    return obj
def toJSON(self):
    obj = {}
    for k in this.__dict__:
        val = getattr(self, k)
        if (type(val) in [types.MethodType, types.FunctionType]):
            continue
        obj[k] = getattr(self, k)
    return obj