Create ToSet.py

In the above Pig code, I used csv.ToCSV(hashtags.hashtag). csv.ToCsv() is a python UDF I defined to convert the bag I received from the hashtags.hashtag into space separated values(suitable input for Mahout FPG(frequent pattern growth)). Here is the Python code.