Fix `SyntaxWarning: import * only allowed at module level`.