Python - toolz