Added doctest for map function in rdd.py

Doctest added for map in rdd.py