Hi,
I did not much work on it, but at least have a very basic python library along with a test script which should cover at the funcionality of the original bafang configuration. Perhaps you will find it useful:
https://github.com/philippsandhaus/bafang-python
Best,
Philipp