API: added method for randomly getting up to N seqs per sample

Randomly get up to N sequences per sample from a sequence file
I think we should use [```future.utils.viewitems```](http://python-future.org/reference.html) here, which will return an iterator that is compatible with python 2.7+ and 3.