move list_name resolve out of task.py so that it can be translated correctly