So, im writing an selenium/appium framework and have to inherit some classes dynamically to do polymorphism but one of the parameters that define the inheritance is obtained