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

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