updated python script for category in pp additional