try to add test to test as_import
Do not shadow submodules

using object that have the same name as submodules as the weird effect
of makeing `import pip.commands.<something> as <anothername>` fail with
a key error. This fixes it by renaming `command` to `_command` and using
`__all__`