Added recursive incAlpha to python version too to avoid index overflow.