lgmt.com says "Testing for None should use the is operator".
These examples show how to call libnm from Python using GObject introspection.