add python script for measuring total time for PA