This deserves a comment above the line ``b0 = ``, otherwise it's unclear what the magic numbers mean (and yes, I did figure it out from the docstring after some frowning).