[Python-ideas] __before__ and __after__ attributes for functions