Jenkins Job to check active users in crowd not working post upgrade from v5.2.3 to v5.3.1

We have a Jenkins job that checks the number of active users present in crowd. We use a python file to determine the active user list in crowd. Currently post upgrade of crowd from v5.2.3 to v5.3.1, the job started failing. We need your help to fix the issue and identify the reason behind it. I have attached the support logs and job logs. Please review those and let us know the cause of failure.