Update logic for py2.7 and be more pythonic
Update logic for py2.7 and be more pythonic

flasgger/flasgger,flasgger/flasgger,rochacbruno/flasgger,rochacbruno/flasgger,flasgger/flasgger,rochacbruno/flasgger,flasgger/flasgger