added doctest for map function in rdd.py