def test(): from sizer import scanner, operations, annotate import xmlrpclib try: import idlelib.PyShell except: print "No idle" pass class A(object): def __getattribute__(self, name): return None a = A() sizes = scanner.Objects() mods = annotate.simplegroupby(sizes, modules = True, threads = True) from sizer import graph graph.showgraph(mods, proportional = True, count = 15) if __name__ == "__main__": test()