Adjust the ``except`` commands to be python3 compatible