BF: agg mpl backend for tests writing png files

We were getting errors writing png files when using the 'svg' backend,
in the tests.  Use 'agg' backend instead.
BF: prepare use of print for Python 3

Getting Python 3-like error for print statement - use print function
instead.