[tor-commits] [pytorctl/master] Use isinstance rather than "is type()" for type checks.