def close(self):
if self.session is not None:<EOL><INDENT>self.session.close()<EOL>self.session = None<EOL><DEDENT>
Closes any open connection. This should only need to be called if
        reuseconnection is set to True. Once it's closed, the connection may be
        reopened by making another API called.