p39 in python