import foo
classes = [foo.baa.a, foo.daa.c, foo.AA]

def save(theClass, argument):
    aa = theClass()
aa.save(argument)
save(random.choice(classes), arg)
how to dynamically create an instance of a class in python?