title: Scipy error? IndexError: index 2 is out of bounds for axis 0 with size 2
body: <p>I am trying to run this code, and I am getting the error below after running it. I am not sure if it is my version of SciPy or Python or a bug. somewhere. I am using <code>Python 2.7.11</code> and running on OSx.  </p>
  
  <pre><code>from pylab import *
  from ddeint import ddeint
  
  def model(Y,t,d):
      x,y = tuple(Y(t))
      print(x,y)
      xd,yd = tuple(Y(t-d))
      return array([0.5*x-0.5*x*y, -0.5*y + 0.5*xd*yd])
  
  g = lambda t : array([1,2])
  tt = linspace(2,30,20000)
  
  for d in [0]:
      print('d', d)
      yy = ddeint(model,g,tt,fargs=(d,))
      # WE PLOT X AGAINST Y
      plot(yy[:,0], yy[:,1], lw=2, label='delay = %.01f'%d)
  
  legend()
  </code></pre>
  
  <p>The error I am receiving:</p>
  
  <blockquote>
    <p>IndexError: index 2 is out of bounds for axis 0 with size 2</p>
  </blockquote>
  
  <p>Thank you!! </p>