If your code is dependent on isinstance, my suggestion is to think
less dynamically. ;)
The point of ShedSkin is to take code which uses types that it can
figure out in advance (just by analyzing the source, without running
it), and turn that into C++. The major speed gains come from taking
advantage of what is in effect static typing. If you need to test
types at run-time, chances are your code is not a good fit for
ShedSkin.
But in many cases, you can just rewrite your code to so that you don't
reuse names for multiple types. So, try thinking of your problem in
statically typed terms.
John