lgtm.com complains about this. Avoid the warning.
These examples show how to call libnm from Python using GObject introspection.