def run_itty(server='wsgiref', host='localhost', port=8080, config=None,
    cookie_secret=None):
    if not server in WSGI_ADAPTERS:
        raise RuntimeError("Server '%s' is not a valid server. Please choose a different server." % server)

    if config is not None:
        # We'll let ImportErrors bubble up.
        config_options = __import__(config)
        host = getattr(config_options, 'host', host)
        port = getattr(config_options, 'port', port)
        server = getattr(config_options, 'server', server)

    # AppEngine seems to echo everything, even though it shouldn't. Accomodate.
    if server != 'appengine':
        print 'itty starting up (using %s)...' % server
        print 'Listening on http://%s:%s...' % (host, port)
        print 'Use Ctrl-C to quit.'
        print

    global COOKIE_SECRET
    COOKIE_SECRET = cookie_secret or base64.b64encode(os.urandom(32))

    try:
        WSGI_ADAPTERS[server](host, port)
    except KeyboardInterrupt:
        print 'Shutting down. Have a nice day!'
Produce an instance of this model from some xml.
dataset/ETHPy150Open toastdriven/itty/itty.py/run_itty--crossover with--dataset/ETHPy150Open rfk/dexml/dexml/__init__.py/Model.parse