import foo import bar def test(): foo = foo.Foo() bar = bar.Bar()