IIRC to make sure that these are relative imports (and not a system-level module called `dpkg_environment` or `yum_environment`) you should use this notation:

```python
from .dpkg_environment import DpkgEnvironment
from .yum_environment import YumEnvironment
```

Please test it first though.