Pytest Python Class Inheritance