class Capturer:

    def capture(self, s_url, s_filename):
        s_file_out, httpmessage = urllib.request.urlretrieve(s_url, s_filename,
            self.report)

def report(self, i_count, i_chunk, i_size):
    print('retrived %5d of %5d bytes' % (i_count * i_chunk, i_size))

def test():
    pass
How do I shut down PyQt's QtApplication correctly?