<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_memory(self, addr, value, transfer_size=32):
 """ write a memory location. By default the transfer size is a word """

        self.ap.write_memory(addr, value, transfer_size)