Is there a way to retrieve a local variable (or even global) from a worker/executor in Spark? Say, I want to retrieve the list called ph_list and have the following code: