boost: add python3 option.

Closes #30590.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>