Use version logic to determine monkey patch location.

Can't rely on imports being accurate and have to use the major version
of python itself to pick the correct module to monkey patch.