def __new__(cls, **kwargs):
if QuickBooks.__use_global:<EOL><INDENT>if QuickBooks.__instance is None:<EOL><INDENT>QuickBooks.__instance = object.__new__(cls)<EOL><DEDENT>instance = QuickBooks.__instance<EOL><DEDENT>else:<EOL><INDENT>instance = object.__new__(cls)<EOL><DEDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>instance.company_id = kwargs['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>instance.sandbox = kwargs['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>instance.minorversion = kwargs['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>instance.session_manager = kwargs['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>instance.verifier_token = kwargs.get('<STR_LIT>')<EOL><DEDENT>return instance<EOL>
If global is disabled, don't set global client instance.