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

    """Factory method for paste.deploy.
    """
    conf = global_conf.copy()
    conf.update(local_conf)
    def filter(app):
        return EC2Token(app, conf)
    return filter