def __getitem__(self, key):
    'Overload the [] operator to give out code units'
    return self.code_units[key]
Overload the [] operator to give out code units
def __getitem__(self, key):
    
    return self.code_units[key]