Fixes Python 2.6 compatibility in HeatStack class

Change-Id: Ic6f02974751565ee941287ab9f13056bbf937ab1
Closes-Bug: #1326527