[compat] correct OptionGroup invocation for Python 3 (fixes #4243)