parameters: (self, key, default=None)
docstring: Return the first value received.
docstring_summary: Return the first value received.
docstring_tokens: Return the first value received .
function: def getfirst(self, key, default=None):
          """ Return the first value received."""
          if key in self:
              value = self[key]
              if type(value) is type([]):
                  return value[0].value
              else:
                  return value.value
          else:
              return default
function_tokens: 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