class A(): def __init__(self): a = 1 class C(A): def __init__(self): pass def foo(self): pass