This commit works really well: https://github.com/ncm2/ncm2-pyclang/commit/908eb403624217d0d8112423e150eddc309b036e I want to generalize it.