class Authentication(object):

    def __init__(self):
        self.__view = View()
        self.__user = User(
            b'$2b$10$j/sucIARrrAq88IlBrXede7C5IVQ4rAZ7QHfCHQvZhJnQxd3CCelm')

    def run(self):
        password = self.__view.do_login()
        self.__user.authenticate(password)
        if self.__user.is_authenticated:
            self.__view.login_successful()
        else:
            self.__view.login_failed()
        return self.__user.is_authenticated
 def __init__(self):
     self.__view = View()
     self.__user = User(
         b'$2b$10$j/sucIARrrAq88IlBrXede7C5IVQ4rAZ7QHfCHQvZhJnQxd3CCelm')