That does look cleaner, but results in 
```
./docker_registry/images.py:26:1: F811 redefinition of unused 'tarfile' from line 6
./docker_registry/lib/layers.py:17:1: F811 redefinition of unused 'tarfile' from line 3
```