Use MarshalSerializer with PySpark

I tried using a JSON serializer but that didn't work.