[SPARK-1690] Tolerating empty elements when saving Python RDD to text files
Adding Python doctest