adding python mode complete