Added fromlist to __import__ calls to ensure import under Mercurial