private static void importIntoDictionary(Dictionary<short, IndexReference> dict, List o)
 {
     short key = 0;
     foreach (string item in o)
     {
         var ar = new IndexReference();
         ar.Value = key;
         ar.Name = item;
         dict[key++] = ar;
     }
 }
        private static Dictionary<short, IndexReference> initDictionary()
        {
            var dict = new Dictionary<short, IndexReference>();
            var none = new IndexReference();
            none.Name = "NONE";
            none.Value = -1;
            dict[-1] = none;

            return dict;
        }
 private static void importIntoDictionary(Dictionary<short, IndexReference> dict, PythonDictionary o)
 {
     foreach (int key in o.Keys)
     {
         var ar = new IndexReference();
         ar.Value = (short)key;
         ar.Name = (string)o[key];
         dict[(short)key] = ar;
     }
 }