Fix build issues when Python is disabled.

Change-Id: If1614bf1a71a5e7b02d9e96d88ac741d3da6a4a9
Merge topic 'refactor_python_tracing_2' into next

a648f465 Fix build issues when Python is disabled.