Fix hacking test to handle namespace packages.
Fix hacking test to handle namespace packages.

This removes our workaround for namespace packages and improves
detection of missing imports due to non-existent dependencies.

Fixes bug 1130411

Change-Id: I89ee8249580e395f786289792cdf74219d041f2f

yrobla/nova,vladikr/nova_drafts,virtualopensystems/nova,gooddata/openstack-nova,apporc/nova,Juniper/nova,akash1808/nova_test_latest,BeyondTheClouds/nova,mahak/nova,isyippee/nova,rahulunair/nova,BeyondTheClouds/nova,mahak/nova,adelina-t/nova,projectcalico/calico-nova,vmturbo/nova,raildo/nova,cloudbau/nova,affo/nova,belmiromoreira/nova,silenceli/nova,joker946/nova,yosshy/nova,alaski/nova,gooddata/openstack-nova,shail2810/nova,Stavitsky/nova,CCI-MOC/nova,barnsnake351/nova,badock/nova,Tehsmash/nova,felixma/nova,bclau/nova,kimjaejoong/nova,dstroppa/openstack-smartos-nova-grizzly,DirectXMan12/nova-hacking,Brocade-OpenSource/OpenStack-DNRM-Nova,TieWei/nova,NeCTAR-RC/nova,Triv90/Nova,sebrandon1/nova,DirectXMan12/nova-hacking,leilihh/nova,openstack/nova,yatinkumbhare/openstack-nova,CCI-MOC/nova,thomasem/nova,alvarolopez/nova,noironetworks/nova,rajalokan/nova,cloudbase/nova,eonpatapon/nova,CiscoSystems/nova,silenceli/nova,sebrandon1/nova,Metaswitch/calico-nova,tianweizhang/nova,citrix-openstack-build/nova,dstroppa/openstack-smartos-nova-grizzly,phenoxim/nova,plumgrid/plumgrid-nova,klmitch/nova,jianghuaw/nova,takeshineshiro/nova,zhimin711/nova,MountainWei/nova,viggates/nova,LoHChina/nova,tangfeixiong/nova,berrange/nova,tanglei528/nova,Stavitsky/nova,mandeepdhami/nova,fnordahl/nova,qwefi/nova,ewindisch/nova,iuliat/nova,imsplitbit/nova,ntt-sic/nova,shahar-stratoscale/nova,Yuriy-Leonov/nova,Francis-Liu/animated-broccoli,orbitfp7/nova,yrobla/nova,luogangyi/bcec-nova,bigswitch/nova,cloudbase/nova-virtualbox,devendermishrajio/nova,dims/nova,petrutlucian94/nova_dev,eharney/nova,cloudbase/nova-virtualbox,Yusuke1987/openstack_template,mikalstill/nova,j-carpentier/nova,OpenAcademy-OpenStack/nova-scheduler,Yusuke1987/openstack_template,rajalokan/nova,sridevikoushik31/nova,yosshy/nova,TieWei/nova,adelina-t/nova,sacharya/nova,vmturbo/nova,gooddata/openstack-nova,CloudServer/nova,gooddata/openstack-nova,LoHChina/nova,TwinkleChawla/nova,maelnor/nova,redhat-openstack/nova,gspilio/nova,double12gzh/nova,citrix-openstack-build/nova,akash1808/nova_test_latest,bgxavier/nova,SUSE-Cloud/nova,blueboxgroup/nova,devendermishrajio/nova,tangfeixiong/nova,leilihh/novaha,zaina/nova,ntt-sic/nova,klmitch/nova,shootstar/novatest,jianghuaw/nova,mikalstill/nova,devoid/nova,spring-week-topos/nova-week,hanlind/nova,tianweizhang/nova,maelnor/nova,sacharya/nova,klmitch/nova,devendermishrajio/nova_test_latest,tudorvio/nova,edulramirez/nova,varunarya10/nova_test_latest,TwinkleChawla/nova,mmnelemane/nova,sebrandon1/nova,affo/nova,CloudServer/nova,alexandrucoman/vbox-nova-driver,bigswitch/nova,Metaswitch/calico-nova,cloudbau/nova,edulramirez/nova,zzicewind/nova,kimjaejoong/nova,mandeepdhami/nova,iuliat/nova,openstack/nova,gspilio/nova,CEG-FYP-OpenStack/scheduler,luogangyi/bcec-nova,nikesh-mahalka/nova,viggates/nova,dawnpower/nova,zhimin711/nova,angdraug/nova,dims/nova,cloudbase/nova,rahulunair/nova,ted-gould/nova,dstroppa/openstack-smartos-nova-grizzly,cyx1231st/nova,takeshineshiro/nova,maheshp/novatest,projectcalico/calico-nova,devoid/nova,varunarya10/nova_test_latest,sridevikoushik31/openstack,CiscoSystems/nova,bgxavier/nova,vmturbo/nova,cernops/nova,shootstar/novatest,fnordahl/nova,jeffrey4l/nova,hanlind/nova,blueboxgroup/nova,NeCTAR-RC/nova,belmiromoreira/nova,mmnelemane/nova,spring-week-topos/nova-week,zzicewind/nova,petrutlucian94/nova_dev,alexandrucoman/vbox-nova-driver,BeyondTheClouds/nova,jianghuaw/nova,akash1808/nova,tanglei528/nova,Tehsmash/nova,mgagne/nova,JioCloud/nova,Triv90/Nova,ruslanloman/nova,qwefi/nova,rickerc/nova_audit,thomasem/nova,angdraug/nova,joker946/nova,plumgrid/plumgrid-nova,CEG-FYP-OpenStack/scheduler,mahak/nova,OpenAcademy-OpenStack/nova-scheduler,Brocade-OpenSource/OpenStack-DNRM-Nova,shail2810/nova,cernops/nova,maheshp/novatest,eonpatapon/nova,cernops/nova,Juniper/nova,shahar-stratoscale/nova,JioCloud/nova_test_latest,raildo/nova,noironetworks/nova,tealover/nova,gspilio/nova,yrobla/nova,sridevikoushik31/nova,watonyweng/nova,nikesh-mahalka/nova,SUSE-Cloud/nova,tealover/nova,akash1808/nova,tudorvio/nova,cyx1231st/nova,eharney/nova,cloudbase/nova,vmturbo/nova,petrutlucian94/nova,Juniper/nova,jianghuaw/nova,MountainWei/nova,badock/nova,watonyweng/nova,Triv90/Nova,scripnichenko/nova,rickerc/nova_audit,sridevikoushik31/openstack,Juniper/nova,ruslanloman/nova,DirectXMan12/nova-hacking,jeffrey4l/nova,mgagne/nova,JianyuWang/nova,scripnichenko/nova,isyippee/nova,ewindisch/nova,felixma/nova,JianyuWang/nova,saleemjaveds/https-github.com-openstack-nova,zaina/nova,rajalokan/nova,rrader/nova-docker-plugin,rahulunair/nova,mikalstill/nova,petrutlucian94/nova,hanlind/nova,j-carpentier/nova,yatinkumbhare/openstack-nova,alvarolopez/nova,barnsnake351/nova,leilihh/nova,apporc/nova,vladikr/nova_drafts,phenoxim/nova,openstack/nova,eayunstack/nova,alaski/nova,Yuriy-Leonov/nova,sridevikoushik31/nova,imsplitbit/nova,whitepages/nova,dawnpower/nova,saleemjaveds/https-github.com-openstack-nova,klmitch/nova,eayunstack/nova,maheshp/novatest,JioCloud/nova,sridevikoushik31/nova,whitepages/nova,bclau/nova,sridevikoushik31/openstack,devendermishrajio/nova_test_latest,redhat-openstack/nova,JioCloud/nova_test_latest,rrader/nova-docker-plugin,leilihh/novaha,berrange/nova,rajalokan/nova,orbitfp7/nova,Francis-Liu/animated-broccoli,virtualopensystems/nova,ted-gould/nova,double12gzh/nova