First working version

Adding tests, fixing metadata, new README.md, fixing pep8 and
pylint style issues