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

Tested and ready to merge.
The right of bucket is open, so if bucketNumber is integer, the return value should be int(bucketNumer) - 1