def imports_on_separate_lines(logical_line):
 line = logical_line
 if line.startswith('import '):
  found = line.find(',')
  if (((-1) < found) and (';' not in line[:found])):
   (yield (found, 'E401 multiple imports on one line'))

def imports_on_separate_lines ( logical_line ) : line = logical_line if line . startswith ( 'import ' ) : found = line . find ( ',' ) if ( ( ( - 1 ) < found ) and ( ';' not in line [ : found ] ) ) : ( yield ( found , 'E401 multiple imports on one line' ) )
imports should usually be on separate lines .