fix VisitForNode at Python