[SPARK-3415] [PySpark] removes SerializingAdapter code

This code removes the SerializingAdapter code that was copied from PiCloud
Do we need the StringIO?  Can we just use `pyspark.cloudpickle.dumps`?