import collections

dept_t = {
	"AFAM":  "Africa and the Americas",
	"ALSO":  "Alternate Language Study Option",
	"AMCON": "American Conversation",
	"AMST":  "American Studies",
	"ARMS":  "American Racial and Multicultural Studies",
	"AR":    "Art and Art History",
	"ART":   "Art and Art History",
	"AS":    "Asian Studies",
	"ASIAN": "Asian Studies",
	"BI":    "Biology",
	"BIO":   "Biology",
	"BMOLS": "Biomolecular Science",
	"CH":    "Chemistry",
	"CHEM":  "Chemistry",
	"CHIN":  "Chinese",
	"CLASS": "Classics",
	"CSCI":  "Computer Science",
	"DANCE": "Dance",
	"EC":    "Economics",
	"ECON":  "Economics",
	"EDUC":  "Education",
	"ENGL":  "English",
	"ES":    "Environmental Studies",
	"ENVST": "Environmental Studies",
	"ESAC":  "Exercise Science Activity",
	"ESTH":  "Exercise Science Theory",
	"FAMST": "Family Studies",
	"FILM":  "Film Studies",
	"FREN":  "French",
	"GCON":  "Great Conversation",
	"GERM":  "German",
	"GREEK": "Greek",
	"HI":    "History",
	"HIST":  "History",
	"HSPST": "Hispanic Studies",
	"ID":    "Interdisciplinary",
	"IDFA":  "IDFA",
	"INTD":  "Interdepartmental",
	"IS":    "Integrative Studies",
	"JAPAN": "Japanese",
	"LATIN": "Latin",
	"MATH":  "Mathematics",
	"MEDIA": "Media Studies",
	"MEDVL": "Medieval Studies",
	"MGMT":  "Management Studies",
	"MU": "Music",
	"MUSIC": "Music",
	"MUSPF": "Music Performance",
	"NEURO": "Neuroscience",
	"NORW":  "Norwegian",
	"NURS":  "Nursing",
	"PH":    "Philosphy",
	"PHIL":  "Philosphy",
	"PHYS":  "Physics",
	"PS":    "Political Science",
	"PSCI":  "Political Science",
	"PSYCH": "Psychology",
	"RE":    "Religion",
	"REL":   "Religion",
	"RUSST": "Russian Studies",
	"RUSSN": "Russian Studies",
	"SCICN": "Science Conversation",
	"SA":    "Sociology and Anthropology",
	"SOAN":  "Sociology and Anthropology",
	"SPAN":  "Spanish",
	"STAT":  "Statistics",
	"SWRK":  "Social Work",
	"THEAT": "Theater",
	"WMNST": "Women's Studies",
	"WMGST": "Women's & Gender Studies",
	"WRIT":  "Writing",
	"NONE":  "Unknown Department"
}

class Department(collections.MutableSequence):
	def __init__(self, name):
		self.list = list()
		name = name.upper()
		if '/' in name:
			self.list.append((name[0:2], dept_t[name[0:2]]))
			self.list.append((name[3:5], dept_t[name[3:5]]))
		else:
			self.list.append((name, dept_t[name]))

	def name(self, i=0):
		return self.list[i][1]

	def abbr(self, i=0):
		return self.list[i][0]

	def __len__(self):
		return len(self.list)

	def __getitem__(self, i): 
		return self.list[i]

	def __delitem__(self, i): 
		del self.list[i]

	def __setitem__(self, i, v):
		self.list[i] = v

	def insert(self, i, v):
		self.list.insert(i, v)

	def __eq__(self, other):
		return self.list == other.list

	def __str__(self):
		if len(self.list) is 1:
			return self.abbr(0)

		elif len(self.list) is 2:
			return self.abbr(0) + '/' + self.abbr(1)

		else:
			print("Something weird just happened in Department: ")
			print("list is ", self.list)


if __name__ == '__main__':
	tmp = (
		Department("AS/RE"),
		Department("ASIAN")
	)
	for i in tmp:
		print(i)

@@ -2094,16 +2094,333 @@
  list()%0A
+%0A%09%09if len(name) is 2:%0A%09%09%09# if name != %22IS%22 or name != %22ID%22:%0A%09%09%09%09# print(name)%0A%09%09%09self.list.append((name, dept_t%5Bname%5D))%0A%0A%09%09elif name not in dept_t and '/' not in name:%0A%09%09%09name = name.title()%0A%09%09%09pairs = dict(zip(dept_t.values(), dept_t.keys()))%0A%09%09%09print(pairs%5Bname%5D)%0A%09%09%09self.list.append((pairs%5Bname%5D, name))%0A%0A%09%09else:%0A%09
 %09%09name =
@@ -2433,16 +2433,17 @@
 upper()%0A
+%09
 %09%09if '/'
@@ -2451,24 +2451,25 @@
 in name:%0A%09%09%09
+%09
 self.list.ap
@@ -2505,16 +2505,17 @@
 0:2%5D%5D))%0A
+%09
 %09%09%09self.
@@ -2558,16 +2558,17 @@
 3:5%5D%5D))%0A
+%09
 %09%09else:%0A
@@ -2566,24 +2566,25 @@
 %09%09%09else:%0A%09%09%09
+%09
 self.list.ap
@@ -2611,16 +2611,17 @@
 ame%5D))%0A%0A
+%0A
 %09def nam

Allow finding departments via their long name