Flatten package to become a single module

As the package essentially consists only of one module it is natural to
treat it as such, namely only one module. This also saves headache with
python2 versus python3 compatibily due to relative imports.

The test file is now moved to the top level directory as well.