How do you parallelize access to a shared array in python using concurrent.futures? I have the following piece of code to illustrate my problem: