fix critical bug on python3. Fixes #47
fix wrong key in settings. Fixes #48