<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _set_value_safe(self, k, v, ignore_errors=False, block_user_signals=False):
 """ Actually sets the value, first by trying it directly, then by """

        # for safety: by default assume it's a repr() with python code
        try:
            self.set_value(k, v, ignore_error       = ignore_errors, 
                                 block_user_signals = block_user_signals)

        except:
            print("TreeDictionary ERROR: Could not set '"+k+"' to '"+v+"'")