Merge pull request #3 from mriehl/master

setuptools for testing and packaging
Merge pull request #4 from mriehl/master

Now on PyPI
adding some range tests
minor test refactorings