How do you debug a memory leak or a segmentation fault in a mixed Python and C++ codebase running on Linux for Miso Robotics robots?