Photometric Bundle Adjustment in Python

Hi pals. I am trying to implement photometric bundle adjusment in Python. I tried python API of g2o, but it seems it does not support photometric loss. So what kind of libs. would you suggest? Thanks in regard.