fixes subclass checks in random_index
removes dependency on numpy
allows for use of pypy
adds pypy to travis.ci tests