Don't use instance-testing method (for py3 compat), use separate tuple of types instead