the beginnings of the python implementation of bi