I have a Lambda function that is designed to turn ON/OFF my Philip HUE lightbulbs. I am able to execute the python script & it runs (error-free) on my local machine. However
The issue with changing the value of internal_dict_value during the loop is you dont know what type it's going to hold.
try something like if type(internal_dict_value) is dict: