Python2: Use __name__ rather than __qualname__
Python2: Use __name__ rather than __qualname__

The __qualname__ attribute was added in Python 3. Falls back on
__name__ for Python 2 compatibility, when __qualname__ is not
available.

Related-Bug: 1726399
Change-Id: I19d07dc978250e5340327f05ea6ab62ac55489ed

stackforge/ospurge,openstack/ospurge,openstack/ospurge