def print_qstr(self, qstr_filename):
    with open(qstr_filename, 'wt') as qstr_file:
        for pin in self.pins:
            print('Q({})'.format(pin.name), file=qstr_file)
def print_qstr(self, qstr_filename):
    with open(qstr_filename, 'wt') as qstr_file:
        for pin in self.pins:
            print('Q({})'.format(pin.name), file=qstr_file)