def remove_duplicates_retain_order(seq):
	"""Code credited to https://stackoverflow.com/a/480227.
	
	Args:
		seq (list): Any list of any datatype.
	Returns:
		list: The list in same order but only first occurence of all duplicates retained.
	"""
	seen = set()
	seen_add = seen.add
	return([x for x in seq if not (x in seen or seen_add(x))])