Python implementation of the BART API