[python] inline compile