BF: Fix getting jail name from exceptions in beautifier for Python 3+