Fix dict comprehension for python 2.6

refs #14979
Merge branch 'bug/14979' into develop

* bug/14979:
  Fix dict comprehension for python 2.6