Using PySpark to perform Transformations and Actions on RDD