<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(self, block):
 """ Write to local file and update progress bar """

        self.fileobj.write(block)
        self.status.update(len(block))