'Finds a style object based on the name'

def getStyleByName(self, name):

    ncname = make_NCName(name)
    if (self._styles_dict == {}):
        self.rebuild_caches()
    return self._styles_dict.get(ncname, None)
