isinstance() works as specified.