<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cas(self, key, value, new_value):
 """ Perform an atomic compare-and-set on the value in "key", using a prefix match on the provided value. """

        return self.run_script('cas', keys=[key], args=[value, new_value])