raise errors if numpy not present but functions that call it are called
remove mercurial stuff from distribution
handle no numpy in tests.py