Fix missing imports and bad call caught by pyflakes
Fix missing imports and bad call caught by pyflakes

Change-Id: Ib2735fff18d76152baa7f9c61af7ddf4594c722b

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