[SPARK-2377] Python API for Streaming

This patch brings Python API for Streaming.

This patch is based on work from @giwa
Since they are not used outside `RDDFunction`, they should at least be private to this class.