list to dictionary script