I know the general idea of how to make a Python 2.7 script compatible with Python 3, but how would I go about making it compatible when it uses the imported bzrlib toolbox modules that are not supported by Python 3?
I am importing:
from bzrlib.branch import Branch
There is a fork of Bazaar project with an API that is mostly backwards compatible and that works with Python 3 called Breezy. See https://code.launchpad.net/brz and https://www.breezy-vcs.org/.
It supports all Bazaar file formats and network protocols.
Protocol documentation is available at https://www.breezy-vcs.org/developers/api/