<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_primary_contact(self, email):
 """assigns the primary contact for this client"""

        params = {"email": email}
        response = self._put(self.uri_for('primarycontact'), params=params)
        return json_to_py(response)