Improve PyInsane tests, v3

Hi Jerome,

Third try!  This includes the previous improvements to the testing, but also moves the disabling of sane_exit to rawapi.py.  Also moved over is the logic which avoids calling sane_init more than once.

Ross