Merge "Make the stack script python3.5 compatible." am: ec44e57e10 am: 89b2239085

Original change: https://android-review.googlesource.com/c/platform/development/+/1689066

Change-Id: I09635504b6f6cfb2939ed8c30e1696895813562f