TST: Fix ImportError: No module named 'mpl_toolkits'

Apparently `imp.find_module` does not support namespace packages.
Fixes issue #3252.