[smotri] Simplify login and use unicode literals