def __iter__(self):
		""" Iterate over internal storage and yield next command. Commands with lower priority will be yielded
		first
		"""
		priorities = list(self.__priorities.keys())
		priorities.sort()

		for priority in priorities:
			for command in self.__priorities[priority]:
				yield command
def __iter__ ( self ) : priorities = list ( self . __priorities . keys ( ) ) priorities . sort ( ) for priority in priorities : for command in self . __priorities [ priority ] : yield command
Iterate over internal storage and yield next command. Commands with lower priority will be yielded
		first