Can we write:

```
if value is None or isinstance(value, basestring):
    return value
```

which is slightly shorter and still easy to understand.