Add __getitem__ and __len__ to client Distribution.

Closes #391.