def __init__(self, data, *args, **kwargs):
    if (isinstance(data, dict) and ('code' in data.keys())):
        super(Response, self).__init__(data, *args, **kwargs)
    else:
        super(Response, self).__init__(codes.append('ok', {'data': data}), *args, **kwargs)
def __init__(self, data, *args, **kwargs):
    if (isinstance(data, dict) and ('code' in data.keys())):
        super(Response, self).__init__(data, *args, **kwargs)
    else:
        super(Response, self).__init__(codes.append('ok', {'data': data}), *args, **kwargs)