I would propose to remove the `str()` wrapper here.  First it simplifies the documentation, so there is a simple rule that the function must return a string.  More importantly using `str()` could be a problem if the function returns unicode (which then gets cast to `str` type in Python 2.x).