Adding python index loop, consistent name for var_init, fixing python printer for initialized variables.