I think this patch may require some xcode changes. This is because of the from six.moves import reload_module. In the CMake build as part of the swig wrapper python script we symlink the six module from lldb/third_party/Python/modules/six to be in LLDB's private lib/site-packages directory. This way we can import six from within lldb.
This may not be happening on the Xcode build yet, which if so this will fail on Xcode build. Would someone mind helping me out with this part? LMK if I should submit as is and you fix up the xcode build later, or you want to do it as one patch.