Fix api_key, refactor, use unicode literals everywhere