Clean this up by writing:

```python
from os import environ
from os.path import abspath, dirname
```

This way, in your code, you can say `environ` instead of `os.environ` and `dirname/abspath` instead of `os.path.dirname/os.path.abspath`.