def plugin_install(app, fobj, request, filename):
    upname = apath('../deposit/%s' % filename, request)

    try:
        write_file(upname, fobj.read(), 'wb')
        path = apath(app, request)
        w2p_unpack_plugin(upname, path)
        fix_newlines(path)
        return upname
    except Exception:
        os.unlink(upname)
        return False
Initialize a connection to the back-end EC2 APIs.
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/admin.py/plugin_install--crossover with--dataset/ETHPy150Open AppScale/appscale-tools/lib/agents/ec2_agent.py/EC2Agent.open_connection