<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_patch_op(self, keypath, value, op='replace'):
 """ Return an object that describes a change of configuration on the given staging. Setting will be applied on all available HTTP methods. """

        if isinstance(value, bool):
            value = str(value).lower()
        return {'op': op, 'path': '/*/*/{}'.format(keypath), 'value': value}