List To Array In Python Using A Dictionary