Improve the presentation of paths whose "Node-kind:" field was missing

Also, use modern python formatting