Moved import of tools to work in 3.x.