[Python-ideas] Call a function at invocation