p22 in python