Fix python build dependency issue.

Certain targets were always dirty causing due to missing output file. Fixed
that.

Change-Id: I13616d14476bcca62b28e1d436934bacf561fa5e
Merge topic '0014214_fix_python_trace_issues' into next

f484146 Fix python build dependency issue.