human
...a function that adds Agents to the Ecosystem:

Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
  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