<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_bytes(self, data, n):
 """Write n number of bytes to this packet."""

        for pos in xrange(0, n):
            self.payload[self.pos + pos] = data[pos]
            
        self.pos += n