Change input list to module dict