Move the Remind command with the uid from from_file to to_file

def move_vobject(self, uid, from_file, to_file):
        """Move the Remind command with the uid from from_file to to_file"""
        if from_file not in self._reminders or to_file not in self._reminders:
            return

        uid = uid.split('@')[0]

        with self._lock:
            rem = open(from_file).readlines()
            for (index, line) in enumerate(rem):
                if uid == md5(line[:-1].encode('utf-8')).hexdigest():
                    del rem[index]
                    open(from_file, 'w').writelines(rem)
                    open(to_file, 'a').write(line)
                    break