human
Complete this python program:
def filter_factory(global_conf, **local_conf):
assistant
#Here is the Python code you requested.

    """paste.deploy app factory for creating WSGI proxy apps.
    """
    conf = global_conf.copy()
    conf.update(local_conf)
    def limit_filter(app):
        return RateLimitMiddleware(app, conf)
    return limit_filter