from director_string import * class B(A): def __init__(self,string): A.__init__(self,string) def get_first(self): return A.get_first(self) + " world!" b = B("hello") b.get(0) if b.get_first() != "hello world!": print b.get_first() raise RuntimeError