pam to call python