fix missing paren from merge
fix doctest syntax for py3