Python script to compute and visualize power index calculations