[SPARK-2024] Enable batch serialization to Python when reading sequence file