use
```python
os.pathsep.join([pkg_egg_dir] + [x for x in os.environ.get('PYTHONPATH', '').split() if len(x) > 0])
```