The script was previously only Python 2 compatible. Python 2 support is now removed, so we don't maintain backwards compatibility with Python 2. This also fixes all linter warnings. Original-commit: 6046e1a812ba2065d6ae13b4c4afdce8abc99d4f