Updated twoneurons.py to conform to the new api.