I normally do

```
import stdlibA
import stdlibB

from stdlibA import A, B, C
from stdlibB import X, Y, Z

import pkgA

import pkgB

from pkgA import N, M, P

from pkgB import Q, R, S
``