refactored utility functions based on hangupsbot.py get_config_options and get_config_suboptions
refactored utility functions based on hangupsbot.py get_config_options and get_config_suboptions

cd334/hangoutsbot,jhonnyam123/hangoutsbot,makiftasova/hangoutsbot