Following script works and gives me required information from azure DevOps rest api used.
I run this using -
python filename.py -o org_name -p key