underscore python and a wrapper for chaining