Fix python3 gate issue

Change-Id: I631baf8ef78a2f5c0ed4331ed8507d5c73bb9b49
Merge "Fix python3 gate issue"