code: def getElementProperties(self, name):
          
          try:
              allp = self.all_elements[name.upper()]
              if isinstance(allp, dict):
                  type = allp.keys()[0]
                  properties = allp.values()[0]
                  return {'type': type, 'properties': properties}
              else:
                  type = allp
                  return {'type': type, 'properties': None}
          except:
              pass
docs: return element properties
          :param name: element name