Python: fixed a missing variable in Graph.layout_kamada_kawai()