[Python-ideas] Problems (and solutions?) in writing decorators