<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_time(self, key_name, new_time):
 """Sets the time of key."""

        self.unbake()
        kf = self.dct[key_name]
        kf['time'] = new_time
        self.bake()