This shows how to build a SO and use CUE from python https://github.com/philipdexter/pycue (Note that is a really old version of CUE)
Reply on news.ycombinator.com