Fix template_utils tests for Python 3.4

Change-Id: I9e4df63771e8fdb6433e65faffedef60d0320062
Closes-Bug: #1384511