Update py script and handled right click