add another python implementation for Q3.2