I am using py-spark code with foreachPartition(function that calls py-module and gets JSON object)
This works fine with master-local but fails to write with master-ya