developed C-API Python bindings for background method