python parallel processing for loop optimisation

I am new to Parallel Processing in Python. I have a code with "for" loop in it and it iterates over the data in a Json file. I want to Optimize it by running all "names" this "for "loop picks in parallel. When i tried "multiprocessing " it failed again n again, as it take iterable inputs and is throwing Py4j error mostly. Stuck here, help n suggest. eg.

for names in column[attribute]:
    view_1="create view do something"
    view_2="do something on view1"

Suppose, column[attribute] has multiple "names" then how to run all these in parallel. ??