A sane (and fast) way to chain numpy.dot