Exclude tests from installation

https://bugs.gentoo.org/show_bug.cgi?id=455250
Merge pull request #127 from floppym/master

Exclude tests from installation
Merge branch 'develop'
Fix error when sys.stdout.encoding is None
Merge pull request #140 from mkomitee/master

Fix issue when sys.stdout.encoding is None