Upgrade to python3 for pre-commit flake config