fixed queue issue in python postprocess script