def update_password(user, password, new_password):
class AuthToken(object):<EOL><INDENT>def __init__(self):<EOL><INDENT>self.scheme = "<STR_LIT>"<EOL>self.principal = user<EOL>self.credentials = password<EOL><DEDENT><DEDENT>auth = AuthToken()<EOL>setattr(auth, "<STR_LIT>", new_password)  <EOL>connect(("<STR_LIT:localhost>", <NUM_LIT>), auth=auth).close()<EOL>
Test utility for setting the initial password.

    :param user: user name
    :param password: current password
    :param new_password: new password