Parallel code in python to perform multiple experiments simultaneously