Use issubclass() check instead of inspecting MRO