Create GenrateAnalytics.py

File that contains all the functions to do the heavy lifting.