add __slots__ for class `Result` and `Command` for space saving

A large amount of result objects could be retured, adding the __slots__ for saving memory in that case.