OK, so self.cfg['parallel'] is not a good option...

The problem with hardcoding is that it's not instantly clear why you're checking for `2` here, and not e.g. `7`. You'll need to look further to figure that out. Using a constant makes it explicit that the same value is required somewhere else.