Don't import optional packages until needed.
This avoids failures on static python builds because of these optional packages that are not present.
A GitLab update will be applied on May 23, between 8am and 10am, EDT (UTC-04:00). This site may have intermittent delays during that time.
This avoids failures on static python builds because of these optional packages that are not present.