Py3-ify print_locals.py

Change-Id: I169ffad49e6c7850b3be084e1f58d33d8d3086bc
Merge "Py3-ify print_locals.py"