What do you think of changing this line to:
```
if entry[0].startswith('127.'):
```

Wouldn't the current line match the following entry like this?
```
166.78.127.78           test.com
```