Python plotting, correct pButtons extraction