Use `...` instead of `>>>` for continuation lines in doctests. Python's string parser isn't smart enough to handle this, which is where the Travis errors are coming from.

Also, the hanging indent on this line doesn't align immediately after the previous line's `(`.

That's all I see holding this back, great work!