Fix some doctests that were malformatted, leading to syntax warnings in the 2to3 conversion.
Merge pull request #1114 from iguananaut/docstring-fixes

Fix some doctests that were malformatted, leading to syntax warnings in ...