code: def pause_resume(self):
          
          if self.is_paused():
              urlopen(self.url + "&mode=resume")
          else:
              urlopen(self.url + "&mode=pause")
docs: Toggle between pausing or resuming downloading.