def setup_method(self, method):
        hostlist, user, password = TestBaseClass.get_hosts()
        config = {'hosts': hostlist}
        if user is None and password is None:
            self.client = aerospike.client(config).connect()
        else:
            self.client = aerospike.client(config).connect(user, password)
        for i in range(5):
            key = ('test', 'demo', i)
            rec = {'name': 'name%s' % (str(i)), 'age': i}
            self.client.put(key, rec)
        policy = {}
        self.client.udf_put("bin_lua.lua", 0, policy)
        self.job_id = self.client.scan_apply("test", "demo", "bin_lua",
                                             "mytransform", ['age', 2])
Use URLopener().open(file) instead of open(file, 'r').
dataset/ETHPy150Open aerospike/aerospike-client-python/test/old_tests/test_job_info.py/TestScanInfo.setup_method--crossover with--dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/urllib.py/URLopener.open