p49 in python