changed virtualcloud.py for dual-mode access, shell or cli