python add workaround class Var for assignment

In python, assign is statement, instead of expression. so it's necessary to add Var for hold result and using rule directly.