Update pmcli.py

changes for multiple groups