created cardmgr.py to replace and extend addcard.py