remove unicode bug, switch of small test + some pep8 adaptations