Move check to the Python wrappers themselves.

Conditional compilation based on IMP_SWIG_WRAPPER
does not work on Windows - the methods are built
into the original DLL, so can't be overridden in the
.pyd Python wrapper.