def dynamic_import(str_import):
    mod, cla = str_import.rsplit('.', 1)
    dyn_import = getattr(__import__(mod, fromlist=[str(cla)]), cla)
    return dyn_import
Takes one metric or a wildcard seriesList.
dataset/ETHPy150Open BenoitDamota/mempamal/mempamal/dynamic.py/dynamic_import--crossover with--dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/sortByMaxima