On an unrelated note, Python folks should check out OP's library funcy [1]: "A collection of fancy functional tools focused on practicality. Inspired by clojure, underscore and my own abstractions."
Thanks for the library Suor! I've used it happily for many years!
[1] https://github.com/Suor/funcy