'Returns all security groups
groupnames - optional list of group names to retrieve'

def get_all_security_groups(self, groupnames=[]):

    filters = {}
    if groupnames:
        filters = {'group-name': groupnames}
    return self.get_security_groups(filters=filters)
