[SPARK-1170] Add histogram method to Python's RDD API

Tested and ready to merge.
And please add a test case for this too.