<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _bool_encode(self, d):
 """ Converts bool values to lowercase strings """

        for k, v in d.items():
            if isinstance(v, bool):
                d[k] = str(v).lower()
        
        return d