BUG: Improve itkTemplate New compatibility with Python 3
BUG: Improve itkTemplate New compatibility with Python 3

Addresses:

334: Test command: /home/matt/bin/miniconda3/envs/itk/bin/python "/home/matt/src/ITKExamples/src/Numerics/Statistics/HistogramCreationAndBinAccess/Code.py"
334: Test timeout computed to be: 1500
334: Traceback (most recent call last):
334:   File "/home/matt/src/ITKExamples/src/Numerics/Statistics/HistogramCreationAndBinAccess/Code.py", line 27, in <module>
334:     histogram = itk.Histogram.New(MeasurementVectorSize = numberOfComponents)
334:   File "/home/matt/bin/miniconda3/envs/itk/lib/python3.6/site-packages/itkTemplate.py",
line 416, in New
334:     return self[keys[0]].New(*args, **kwargs)
334: TypeError: 'dict_keys' object does not support indexing 1/1 Test #334: HistogramCreationAndBinAccessTestPython ...***Failed Required regular expression not found.Regex=[^Frequency of the bin at index \[0, 2\] is 5 and the bin's instance identifier is 6

with Python 3.6.

d.keys() returns a list with Python 2 but a dict_keys object in Python
  3.

Change-Id: Iaf2a31f83becdaa2edbef19e205b01037e60e941

stnava/ITK,BRAINSia/ITK,InsightSoftwareConsortium/ITK,spinicist/ITK,hjmjohnson/ITK,stnava/ITK,fbudin69500/ITK,vfonov/ITK,richardbeare/ITK,hjmjohnson/ITK,vfonov/ITK,blowekamp/ITK,spinicist/ITK,fbudin69500/ITK,vfonov/ITK,richardbeare/ITK,vfonov/ITK,thewtex/ITK,thewtex/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,BRAINSia/ITK,Kitware/ITK,malaterre/ITK,stnava/ITK,spinicist/ITK,PlutoniumHeart/ITK,LucasGandel/ITK,blowekamp/ITK,blowekamp/ITK,BRAINSia/ITK,thewtex/ITK,vfonov/ITK,Kitware/ITK,BRAINSia/ITK,richardbeare/ITK,thewtex/ITK,malaterre/ITK,Kitware/ITK,richardbeare/ITK,LucasGandel/ITK,stnava/ITK,blowekamp/ITK,LucasGandel/ITK,spinicist/ITK,thewtex/ITK,blowekamp/ITK,stnava/ITK,PlutoniumHeart/ITK,BRAINSia/ITK,BRAINSia/ITK,malaterre/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,fbudin69500/ITK,BRAINSia/ITK,hjmjohnson/ITK,PlutoniumHeart/ITK,stnava/ITK,fbudin69500/ITK,fbudin69500/ITK,hjmjohnson/ITK,InsightSoftwareConsortium/ITK,hjmjohnson/ITK,fbudin69500/ITK,hjmjohnson/ITK,spinicist/ITK,hjmjohnson/ITK,spinicist/ITK,malaterre/ITK,Kitware/ITK,PlutoniumHeart/ITK,richardbeare/ITK,Kitware/ITK,malaterre/ITK,PlutoniumHeart/ITK,PlutoniumHeart/ITK,InsightSoftwareConsortium/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,vfonov/ITK,malaterre/ITK,LucasGandel/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,malaterre/ITK,LucasGandel/ITK,fbudin69500/ITK,malaterre/ITK,vfonov/ITK,LucasGandel/ITK,spinicist/ITK,stnava/ITK,spinicist/ITK,Kitware/ITK,LucasGandel/ITK,stnava/ITK,blowekamp/ITK,LucasGandel/ITK,malaterre/ITK,PlutoniumHeart/ITK,Kitware/ITK,fbudin69500/ITK,vfonov/ITK,blowekamp/ITK,spinicist/ITK,vfonov/ITK,PlutoniumHeart/ITK,blowekamp/ITK,stnava/ITK