v13 with #83 : Convert .txt doctests to .py unit tests

For #83: Tests should work for a wide range of distros, returning the same count with some tests skipped.

Complete part of #74 with unit tests and a similar fix for ops.transform

Also, make "setup.py test" do an in-place build to test the speedups module, which now works for Travis CI (among others). Tested with both built-in distutils and with setuptools add-on.