Used to check if there is a dict in a dict

def _check_for_inception(self, root_dict):
        '''
        Used to check if there is a dict in a dict
        '''

        for key, value in root_dict.items():
            if isinstance(value, dict):
                root_dict[key] = Response(value)

        return root_dict