Fixed a problem introduced by a change to absolute import.

The problem was caused by the name conflict between the scan submodule and the scan function.