def gen_orgs(g):
    """Generator of orgs."""
    user = g.get_user()
    for org in user.get_orgs():
        print('\t{}, {} public repo(s), {} private repo(s)'.format(org.name,
            org.public_repos, org.total_private_repos))
        yield org
