Use raw strings in docstrings with backslashes in them
Readme about how to set up development in Python 3
Make some doctests compatible with Python 3.

In Py3, sys.stdout.write returns a value,
which caused different output in doctests.