adding python mode