class Clan:
  def __init__(self, colour):
    self.clan_members = []
    self.colour = colour

  def clan_members(self):
    return list(self.clan_members)

  def add_member(self, clan_member):
    if (clan_member.clan is None):
      print "bob"
    else:
      clan_member.clan.remove_member(clan_member)

    self.clan_members.append(clan_member)
    clan_member.clan = self
    clan_member.clan_level = 0

  def remove_member(self, clan_member):
    self.clan_members.remove(clan_member)

  def colour(self):
    return self.colour

  def size(self):
    return len(self.clan_members)

  def __repr__(clan):
    return "Clan: colour={0},members={1}".format(clan.colour, clan.clan_members)

