[Python-ideas] inline Python functions and methods