def unpack_out ( self , name ) : return self . parse ( """
            $enum = $enum_class($value.value)
            """ , enum_class = self . _import_type ( ) , value = name ) [ "enum" ]
python enum no attribute 'decode'
def unpack_out(self, name):
        return self.parse("""
            $enum = $enum_class($value.value)
            """, enum_class=self._import_type(), value=name)["enum"]