It's sort of annoying from a performance point of view that we instantiate these objects for each record as we call `convert`, but we can leave this as is for now and optimize later. I guess the solution would be to look at they key and value of the first record in `convertRDD`, similar to `rddToPython`.