@staticmethod
    def keys_to_lower(source_dict):
        """Converts the keys of a dictionary to lowercase.

        Args:
            source_dict: The dictionary you want to convert.

        Returns:
            A dictionary with lowercase keys.

        """
        if type(source_dict) is None:
            return dict()
        elif (dict, OrderedDict) in type(source_dict):
            for k in source_dict.keys():
                if type(source_dict[k]) is dict:
                    source_dict[k] = Util.keys_to_lower(source_dict[k])

            return dict((str(k).lower(), v) for k, v in source_dict.iteritems())
        elif type(source_dict) is list:
            for num, item in enumerate(source_dict):
                source_dict[num] = Util.keys_to_lower(item)
            return source_dict
dataset/ETHPy150Open missionpinball/mpf/mpf/system/utility_functions.py/Util.keys_to_lower/swapped operands of `in`