Automatically run doctests with pytest
Run doctests in *.rst files too
Fix doctests