Merge pull request #14 from esben/master

Fixes to problems found with Codacy static analysis
Update setup.py for first release to PyPi

Signed-off-by: Esben Haabendal <esben@haabendal.dk>