chore: update python dependencies/update min supported version to py3.12 (#6158)