These are chat archives for ipython/ipython
filepath = None
inputlist = 
for image in glob.glob(directory_location):
obj = inputobject()
obj.filepath = image
__main__typically won't work because the class doesn't resolve on the engines.
rc[:].use_cloudpickle(), it changes how serialization works a bit, and may get what you need.
.use_cloudpickle()on my machine (mac, python 3.6, ipyparallel 6.2.2), but you can get weird issues if you have installed a package after starting the interpreter(s).