Python3 reduction fix