Fix unused variable warning

Change-Id: I924bbf674d6b5a78eb698a686bf6f49170664328
Merge topic 'python_refactor_warnings' into master

8d3a85e6 Fix unused variable warning