How do you optimize a CPU-bound Python application on an edge device used for Miso Robotics robots, and when would you offload components to C++?