'Application factory.'

def __init__(self, *handlers, **kwargs):

    metadata = kwargs.pop('metadata', None)
    if kwargs:
        raise TypeError(('Invalid    keyword    argument:    %s' % kwargs.keys()[0]))
    self._static_path = None
    self._handlers = []
    self._metadata = metadata
    for h in handlers:
        self.add(h)
