'Return the first value received.'

def getfirst(self, key, default=None):

    if (key in self):
        value = self[key]
        if (type(value) is type([])):
            return value[0].value
        else:
            return value.value
    else:
        return default
