strange things with isinstance