p18 in python