One of breitenfelds's isinstance() patches was wrong.