def verifyDictTypes( template, dictToCheck ):
   """Verify dict value types correspond to template"""
   for key in dictToCheck:
      if not ( ( isinstance( dictToCheck[ key ], list ) and
                 isinstance( template[ key ], list ) ) or
               ( isinstance( dictToCheck[ key ], dict ) and
                 isinstance( template[ key ], dict ) ) or
               ( isinstance( dictToCheck[ key ], template[ key ] ) ) ):
         return False

   return True