Automagically inline python methods