fix forking warning that started in python3.12