You should probably briefly mention that `SESAME_URL` and `NAME_RESOLVE_TIMEOUT` in this docstring - it's not obvious without looking at the code (or configuration file help) that those apply to this function.