Added support for indirect subclasses of TestCase.
Very minor improvements over the current horrible urlopen sandbox hack.