When using
from numpy import * from numpy import transpose as tr
the key combination Ctrl-Shift-O ignores the "as tr" and incorrectly merges both lines to
from numpy import *