Minor fixes in securitygroup.py