Changed type equality checks to isinstance
Changed type equality checks to isinstance

This allows for me to move the factory function to a __new__ method that
returns subclasses and still keep the benefit of that regression test.
In hindsight, I should have had the test like this in the first place to
allow for the transformation I'm planning on making.

benstreb/os-test-harness,benstreb/os-test-harness