human
Write me a the Python program you requested given the following:
Complete the below
def EC2Token_filter_factory(global_conf, **local_conf):

    ''''Factory method for paste.deploy.'
    '''
assistant
#Here is the Python program you requested.
    conf = global_conf.copy()
    conf.update(local_conf)
    def filter(app):
        return EC2Token(app, conf)
    return filter