python3 updates for all but /pathtrain which we don't use anyway