def load_pkl(path): with open(path) as f: obj = cPickle.load(f) print(" [*] load %s" % path) return obj