SPARK-1162 Added top in python.

Author: Prashant Sharma <prashant.s@imaginea.com>

Closes #93 from ScrapCodes/SPARK-1162/pyspark-top-takeOrdered and squashes the following commits:

ece1fa4 [Prashant Sharma] Added top in python.

(cherry picked from commit b8afe3052086547879ebf28d6e36207e0d370710)
Signed-off-by: Matei Zaharia <matei@databricks.com>
Fix example bug: compile error

Author: jianghan <jianghan@xiaomi.com>

Closes #132 from pooorman/master and squashes the following commits:

54afbe0 [jianghan] Fix example bug: compile error
(cherry picked from commit 31a704004f9b4ad34f92ae5c95ae6e90d0ab62c7)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
SPARK-1019: pyspark RDD take() throws an NPE

Author: Patrick Wendell <pwendell@gmail.com>

Closes #112 from pwendell/pyspark-take and squashes the following commits:

daae80e [Patrick Wendell] SPARK-1019: pyspark RDD take() throws an NPE
(cherry picked from commit 4ea23db0efff2f39ac5b8f0bd1d9a6ffa3eceb0d)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
Merge branch 'branch-0.9' of github.com:apache/spark into csd-2.10