Improved conversion of examples .py to RST
This PR updates the /docs/ex2rst.py
script to use the .. plot
RST directive for all code blocks, along with :context:
to improve the formatting, rather than inserting a .. plot
directive at the end of each.