modified inventory.py and security_group.py