Importação no nível do módulo não no topo do arquivo
Flak8 Rule. All module level imports should be at the top of the file. This means that there should be no statements in between module level imports.
Faysal Al Zoubi