Ignore register deprecation warnings for python.

Also, CMake enforced that we require swig 2.0.10 or greater.