as self.openmp is already a bool this can become:

version.append(('openmp', self.openmp))