@classmethod
def dict_to_class(cls, data):
    if (data.get('__class__') == 'float'):
        return float(data['value'])
    return super(SerpentSerializer, cls).dict_to_class(data)
@classmethod
def dict_to_class(cls, data):
    if (data.get('__class__') == 'float'):
        return float(data['value'])
    return super(SerpentSerializer, cls).dict_to_class(data)