Updated tools, and one of the notebooks, to python3 (!).

Thanks rpy2 for no longer supporting python2...