refactor, combine TransformedRDD, fix reuse PythonRDD, fix union