Do not compare types, use 'isinstance()' (E721)

A object should be be compared to a type by using isinstance. This is because isinstance can handle subclasses as well.