Add isNone helper function to PythonInterface.

boost python only introduced object::is_none in version 1.43. The helper
uses it if it is present but falls back to checking manually if not.
Refs #7607
Merge branch 'feature/7607_remove_v1_python_api' into develop