use new-style class for TestMain class by inheriting from object