Use late import statement to avoid importing sip in headless mode.