[python] plot is not defined