[python2] Fix missing variable