Created HelperFunctions.py

This contains the required helper functions for the new JSON output. I've also consolidated the getControlSet here as well.