Simple Gould Index calculation example in python