code: def _attr_to_property(self, attr):
          
  
          # get the property
          prop = self._properties.get(attr)
          if not prop:
              raise PropertyError(attr)
  
          # found it
          return prop
docs: Common routine to translate a python attribute name to a property name and
          return the appropriate property.