get a class from name within a module

def getClassInModuleFromName(className, module):
    """
    get a class from name within a module
    """
    n = getAvClassNamesInModule(module)
    i = n.index(className)
    c = getAvailableClassesInModule(module)
    return c[i]