Update pmcli.py

remove redundant code