Импорт уровня модуля не в верхней части файла
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