Finished draft. Ready for SciPy reviewers.