#!/usr/bin/python class A: def test(self): pass class B: def test(self): aa = A() aa.test() #-------------------------------- class A: def test(self): pass aa = A() class B: def test(self): aa.test()