Using the approach described in [1] and suggested by Pavel D77588 , this patch introduces a new lldbconfig module that lives next to the lldb module. It makes it possible to make the lldb module configurable. More specifically it makes it possible to delay initializing the debugger, which is needed for testing the reproducer.
I chose to name the module lldbconfig rather than lldb.config because I thought it would be weird to import a "submodule" before the main module, but if anyone feels the other approach is more desirable I'd be happy to change it.
[1] https://stackoverflow.com/questions/3720740/pass-variable-on-import/39360070#39360070
Maybe _initialize (the convention for "private" variables in python)?