[SPARK-2871] [PySpark] Add missing API

Try to bring all Java/Scala API to PySpark.
Maybe explain what "comp" is in the doc comment