Transformations On Text Files Using Pyspark