Is it possible to pass a model name as a variable?

Yes it will but you have a bug in your code, it should be:

def list(modl)