human
...a function that adds Agents to the Ecosystem:"
Please write code following the instructions in jupyter notebook style.
assistant
#Here is code to .

  def addAgent(self, location):
    self.agents.append(Person(location))

# Simple workarounds to make this Python member functions work properly in Jupyter 
# (which doesn't carry over the class structure from the previous fragment).
Ecosystem.addAgent = addAgent