Gotta say, really comforting that this was written in python. Everyone I talked to when it comes to quadrapeds tells me python is too slow for my projects.
People always imagine that mobile robotics needs nanosecond response times or some other silliness when the reality is that your sensors and servos only operate on the order of 100Hz.