I would have expected:

```
for iterator in xrange(5):
            try:
                user = pwd.getpwnam(name_encoded)
                return user
            except ex:
                pass
            time.sleep(0.5)
        raise AssertionError('Could not get user %s: %s' % (name_encoded, ex.message()))
```

Or something similar.