Add doctring for `to_python` [ci-skip].

`to_python` is called when assigning and retrieving a value from the
database.