Hi,
Since support for Python 2 is ending soon, we need to move to Python 3. A useful tool for translating Python 2 code to Python 3 is Py2to3 and I have made a page highlighting this tool. Please have a look and provide comments for the same.
Link - https://pbspro.atlassian.net/wiki/spaces/PD/pages/1030782980/Moving+to+Python+3
Thank You.