How can I infer several Hefs over a single device

You might find this Python example which infer several Hefs over a single device useful.