Gui 1204 VPC security group support added

the last comparison should be `and securitygroup.vpc_id is None` for PEP8 compliance