def METHOD_NAME(udev):
    for device in udev.run():
        for attribute in attributes:
            value = getattr(device, attribute)
            if value is not None:
                print("%s: %s" % (attribute, value))
        print()