Fixing template issue moving to python2.7