pyFlakes issues fixed. Simple refactoring
pyFlakes issues fixed. Simple refactoring

Willem23/mbed,jeremybrodt/mbed,fpiot/mbed-ats,theotherjimmy/mbed,Archcady/mbed-os,larks/mbed,struempelix/mbed,getopenmono/mbed,arostm/mbed-os,JasonHow44/mbed,YarivCol/mbed-os,geky/mbed,EmuxEvans/mbed,bentwire/mbed,c1728p9/mbed-os,kpurusho/mbed,bikeNomad/mbed,ryankurte/mbed-os,pradeep-gr/mbed-os5-onsemi,svogl/mbed-os,wodji/mbed,naves-thiago/mbed-midi,j-greffe/mbed-os,HeadsUpDisplayInc/mbed,fahhem/mbed-os,maximmbed/mbed,EmuxEvans/mbed,fanghuaqi/mbed,brstew/MBED-BUILD,NordicSemiconductor/mbed,catiedev/mbed-os,Timmmm/mbed,Tiryoh/mbed,adustm/mbed,karsev/mbed-os,pi19404/mbed,nRFMesh/mbed-os,YarivCol/mbed-os,getopenmono/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,xcrespo/mbed,xcrespo/mbed,bcostm/mbed-os,fpiot/mbed-ats,nvlsianpu/mbed,monkiineko/mbed-os,dbestm/mbed,bulislaw/mbed-os,betzw/mbed-os,kl-cruz/mbed-os,bikeNomad/mbed,fpiot/mbed-ats,bentwire/mbed,CalSol/mbed,JasonHow44/mbed,hwfwgrp/mbed,mnlipp/mbed,0xc0170/mbed-drivers,autopulated/mbed,nabilbendafi/mbed,radhika-raghavendran/mbed-os5.1-onsemi,pi19404/mbed,alertby/mbed,ban4jp/mbed,adamgreen/mbed,andcor02/mbed-os,rosterloh/mbed,EmuxEvans/mbed,pradeep-gr/mbed-os5-onsemi,rosterloh/mbed,svastm/mbed,Sweet-Peas/mbed,pi19404/mbed,al177/mbed,andreaslarssonublox/mbed,j-greffe/mbed-os,NordicSemiconductor/mbed,jamesadevine/mbed,bentwire/mbed,RonEld/mbed,fvincenzo/mbed-os,mbedmicro/mbed,mazimkhan/mbed-os,infinnovation/mbed-os,pbrook/mbed,rgrover/mbed,autopulated/mbed,mnlipp/mbed,radhika-raghavendran/mbed-os5.1-onsemi,mikaleppanen/mbed-os,RonEld/mbed,alertby/mbed,mmorenobarm/mbed-os,hwfwgrp/mbed,fvincenzo/mbed-os,bentwire/mbed,brstew/MBED-BUILD,rgrover/mbed,mmorenobarm/mbed-os,betzw/mbed-os,dbestm/mbed,kl-cruz/mbed-os,struempelix/mbed,wodji/mbed,mikaleppanen/mbed-os,logost/mbed,betzw/mbed-os,c1728p9/mbed-os,masaohamanaka/mbed,bcostm/mbed-os,rgrover/mbed,al177/mbed,RonEld/mbed,radhika-raghavendran/mbed-os5.1-onsemi,larks/mbed,tung7970/mbed-os-1,andreaslarssonublox/mbed,nabilbendafi/mbed,NordicSemiconductor/mbed,rosterloh/mbed,dbestm/mbed,nRFMesh/mbed-os,nabilbendafi/mbed,mikaleppanen/mbed-os,GustavWi/mbed,wodji/mbed,fahhem/mbed-os,hwfwgrp/mbed,jamesadevine/mbed,theotherjimmy/mbed,Shengliang/mbed,getopenmono/mbed,masaohamanaka/mbed,Tiryoh/mbed,adustm/mbed,HeadsUpDisplayInc/mbed,catiedev/mbed-os,larks/mbed,naves-thiago/mbed-midi,Marcomissyou/mbed,andcor02/mbed-os,struempelix/mbed,j-greffe/mbed-os,EmuxEvans/mbed,tung7970/mbed-os-1,monkiineko/mbed-os,Tiryoh/mbed,logost/mbed,arostm/mbed-os,pi19404/mbed,cvtsi2sd/mbed-os,DanKupiniak/mbed,betzw/mbed-os,netzimme/mbed-os,YarivCol/mbed-os,nabilbendafi/mbed,svogl/mbed-os,sam-geek/mbed,bulislaw/mbed-os,logost/mbed,brstew/MBED-BUILD,geky/mbed,geky/mbed,infinnovation/mbed-os,DanKupiniak/mbed,pedromes/mbed,catiedev/mbed-os,theotherjimmy/mbed,pedromes/mbed,Marcomissyou/mbed,monkiineko/mbed-os,adustm/mbed,GustavWi/mbed,larks/mbed,andreaslarssonublox/mbed,screamerbg/mbed,tung7970/mbed-os-1,mazimkhan/mbed-os,DanKupiniak/mbed,jamesadevine/mbed,devanlai/mbed,CalSol/mbed,sam-geek/mbed,Timmmm/mbed,tung7970/mbed-os,logost/mbed,rgrover/mbed,al177/mbed,HeadsUpDisplayInc/mbed,mikaleppanen/mbed-os,andcor02/mbed-os,sam-geek/mbed,jrjang/mbed,alertby/mbed,devanlai/mbed,nRFMesh/mbed-os,ban4jp/mbed,j-greffe/mbed-os,FranklyDev/mbed,jrjang/mbed,adamgreen/mbed,arostm/mbed-os,ban4jp/mbed,devanlai/mbed,maximmbed/mbed,kpurusho/mbed,EmuxEvans/mbed,naves-thiago/mbed-midi,dbestm/mbed,ARM-software/mbed-beetle,nvlsianpu/mbed,autopulated/mbed,jpbrucker/mbed,larks/mbed,K4zuki/mbed,struempelix/mbed,struempelix/mbed,nabilbendafi/mbed,jamesadevine/mbed,Marcomissyou/mbed,c1728p9/mbed-os,nvlsianpu/mbed,adamgreen/mbed,bremoran/mbed-drivers,bikeNomad/mbed,hwfwgrp/mbed,JasonHow44/mbed,NitinBhaskar/mbed,pradeep-gr/mbed-os5-onsemi,hwfwgrp/mbed,masaohamanaka/mbed,fahhem/mbed-os,Willem23/mbed,ARM-software/mbed-beetle,Timmmm/mbed,tung7970/mbed-os,c1728p9/mbed-os,kl-cruz/mbed-os,c1728p9/mbed-os,JasonHow44/mbed,bcostm/mbed-os,masaohamanaka/mbed,jferreir/mbed,monkiineko/mbed-os,mbedmicro/mbed,mikaleppanen/mbed-os,jeremybrodt/mbed,mnlipp/mbed,Tiryoh/mbed,jferreir/mbed,naves-thiago/mbed-midi,mmorenobarm/mbed-os,autopulated/mbed,iriark01/mbed-drivers,infinnovation/mbed-os,K4zuki/mbed,Sweet-Peas/mbed,cvtsi2sd/mbed-os,HeadsUpDisplayInc/mbed,GustavWi/mbed,Sweet-Peas/mbed,kjbracey-arm/mbed,andcor02/mbed-os,pedromes/mbed,fahhem/mbed-os,hwfwgrp/mbed,nRFMesh/mbed-os,autopulated/mbed,CalSol/mbed,fanghuaqi/mbed,jeremybrodt/mbed,Marcomissyou/mbed,bikeNomad/mbed,tung7970/mbed-os,dbestm/mbed,catiedev/mbed-os,autopulated/mbed,adustm/mbed,logost/mbed,jpbrucker/mbed,adamgreen/mbed,mmorenobarm/mbed-os,RonEld/mbed,geky/mbed,maximmbed/mbed,JasonHow44/mbed,brstew/MBED-BUILD,adustm/mbed,cvtsi2sd/mbed-os,jamesadevine/mbed,YarivCol/mbed-os,jamesadevine/mbed,NXPmicro/mbed,betzw/mbed-os,ryankurte/mbed-os,xcrespo/mbed,pbrook/mbed,c1728p9/mbed-os,Archcady/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,screamerbg/mbed,Timmmm/mbed,infinnovation/mbed-os,Timmmm/mbed,adamgreen/mbed,rgrover/mbed,Shengliang/mbed,YarivCol/mbed-os,pradeep-gr/mbed-os5-onsemi,ryankurte/mbed-os,Archcady/mbed-os,K4zuki/mbed,bremoran/mbed-drivers,naves-thiago/mbed-midi,kpurusho/mbed,mbedmicro/mbed,bentwire/mbed,netzimme/mbed-os,getopenmono/mbed,pedromes/mbed,ARM-software/mbed-beetle,theotherjimmy/mbed,karsev/mbed-os,sam-geek/mbed,masaohamanaka/mbed,mazimkhan/mbed-os,FranklyDev/mbed,svastm/mbed,mazimkhan/mbed-os,fanghuaqi/mbed,brstew/MBED-BUILD,monkiineko/mbed-os,arostm/mbed-os,NXPmicro/mbed,jpbrucker/mbed,screamerbg/mbed,bulislaw/mbed-os,jpbrucker/mbed,fahhem/mbed-os,pi19404/mbed,xcrespo/mbed,pradeep-gr/mbed-os5-onsemi,mbedmicro/mbed,rosterloh/mbed,sg-/mbed-drivers,pbrook/mbed,svogl/mbed-os,jrjang/mbed,alertby/mbed,Shengliang/mbed,pbrook/mbed,xcrespo/mbed,pbrook/mbed,tung7970/mbed-os-1,GustavWi/mbed,karsev/mbed-os,monkiineko/mbed-os,tung7970/mbed-os-1,Willem23/mbed,infinnovation/mbed-os,adamgreen/mbed,bulislaw/mbed-os,netzimme/mbed-os,tung7970/mbed-os,maximmbed/mbed,infinnovation/mbed-os,RonEld/mbed,netzimme/mbed-os,alertby/mbed,Timmmm/mbed,wodji/mbed,kpurusho/mbed,maximmbed/mbed,bentwire/mbed,screamerbg/mbed,al177/mbed,fpiot/mbed-ats,getopenmono/mbed,ARM-software/mbed-beetle,jpbrucker/mbed,nvlsianpu/mbed,Marcomissyou/mbed,cvtsi2sd/mbed-os,Shengliang/mbed,ban4jp/mbed,jeremybrodt/mbed,mnlipp/mbed,kl-cruz/mbed-os,andreaslarssonublox/mbed,pedromes/mbed,NitinBhaskar/mbed,mikaleppanen/mbed-os,Tiryoh/mbed,xcrespo/mbed,Archcady/mbed-os,al177/mbed,YarivCol/mbed-os,Marcomissyou/mbed,karsev/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,netzimme/mbed-os,masaohamanaka/mbed,fpiot/mbed-ats,Sweet-Peas/mbed,svastm/mbed,jferreir/mbed,NitinBhaskar/mbed,svastm/mbed,FranklyDev/mbed,logost/mbed,svogl/mbed-os,jrjang/mbed,andcor02/mbed-os,bulislaw/mbed-os,dbestm/mbed,mmorenobarm/mbed-os,Sweet-Peas/mbed,JasonHow44/mbed,jferreir/mbed,ryankurte/mbed-os,devanlai/mbed,CalSol/mbed,naves-thiago/mbed-midi,HeadsUpDisplayInc/mbed,jpbrucker/mbed,pradeep-gr/mbed-os5-onsemi,mazimkhan/mbed-os,brstew/MBED-BUILD,devanlai/mbed,wodji/mbed,bulislaw/mbed-os,mbedmicro/mbed,EmuxEvans/mbed,adustm/mbed,svogl/mbed-os,arostm/mbed-os,sam-geek/mbed,K4zuki/mbed,arostm/mbed-os,NXPmicro/mbed,theotherjimmy/mbed,fvincenzo/mbed-os,j-greffe/mbed-os,RonEld/mbed,netzimme/mbed-os,theotherjimmy/mbed,cvtsi2sd/mbed-os,nRFMesh/mbed-os,NXPmicro/mbed,DanKupiniak/mbed,larks/mbed,maximmbed/mbed,ban4jp/mbed,svastm/mbed,andcor02/mbed-os,ban4jp/mbed,FranklyDev/mbed,NitinBhaskar/mbed,fanghuaqi/mbed,kl-cruz/mbed-os,screamerbg/mbed,al177/mbed,andreaslarssonublox/mbed,kpurusho/mbed,jferreir/mbed,kl-cruz/mbed-os,fanghuaqi/mbed,catiedev/mbed-os,svogl/mbed-os,mmorenobarm/mbed-os,pi19404/mbed,pedromes/mbed,kjbracey-arm/mbed,nvlsianpu/mbed,karsev/mbed-os,fahhem/mbed-os,cvtsi2sd/mbed-os,NordicSemiconductor/mbed,ryankurte/mbed-os,Shengliang/mbed,Archcady/mbed-os,bikeNomad/mbed,Archcady/mbed-os,geky/mbed,Sweet-Peas/mbed,NXPmicro/mbed,0xc0170/mbed-drivers,iriark01/mbed-drivers,Willem23/mbed,devanlai/mbed,Willem23/mbed,sg-/mbed-drivers,tung7970/mbed-os,Shengliang/mbed,bcostm/mbed-os,nRFMesh/mbed-os,fpiot/mbed-ats,pbrook/mbed,wodji/mbed,ryankurte/mbed-os,FranklyDev/mbed,K4zuki/mbed,jrjang/mbed,kpurusho/mbed,jrjang/mbed,nabilbendafi/mbed,rosterloh/mbed,mnlipp/mbed,fvincenzo/mbed-os,fvincenzo/mbed-os,screamerbg/mbed,alertby/mbed,Tiryoh/mbed,catiedev/mbed-os,CalSol/mbed,mazimkhan/mbed-os,CalSol/mbed,rosterloh/mbed,nvlsianpu/mbed,j-greffe/mbed-os,jferreir/mbed,struempelix/mbed,bcostm/mbed-os,NitinBhaskar/mbed,radhika-raghavendran/mbed-os5.1-onsemi,K4zuki/mbed,getopenmono/mbed,GustavWi/mbed,jeremybrodt/mbed,mnlipp/mbed,bcostm/mbed-os,HeadsUpDisplayInc/mbed,NXPmicro/mbed,karsev/mbed-os,betzw/mbed-os