@claudiodsf, this should be `isinstance(value, basestring)` (testing True for unicode strings, too). The checks for int/float are also not really safe I think:
```
>>> type(np.float64(0)) == float
False
```