Change package list to lua dictionary