[SPARK-31807][INFRA] Use python 3 style in release-build.sh
[SPARK-31807][INFRA] Use python 3 style in release-build.sh

### What changes were proposed in this pull request?

This PR aims to use the style that is compatible with both python 2 and 3.

### Why are the changes needed?

This will help python 3 migration.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manual.

Closes #28632 from williamhyun/use_python3_style.

Authored-by: William Hyun <0d6b2a6cdba65a96cdc8b26488f0cf089fe427cf@gmail.com>
Signed-off-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

ConeyLiu/spark,taroplus/spark,BryanCutler/spark,dbtsai/spark,apache/spark,hvanhovell/spark,holdenk/spark,ptkool/spark,cloud-fan/spark,holdenk/spark,holdenk/spark,xuanyuanking/spark,gengliangwang/spark,spark-test/spark,HyukjinKwon/spark,JoshRosen/spark,xuanyuanking/spark,taroplus/spark,zero323/spark,wzhfy/spark,shaneknapp/spark,BryanCutler/spark,HyukjinKwon/spark,ueshin/apache-spark,srowen/spark,maropu/spark,wzhfy/spark,holdenk/spark,wzhfy/spark,milliman/spark,cloud-fan/spark,shuangshuangwang/spark,JoshRosen/spark,xuanyuanking/spark,witgo/spark,spark-test/spark,nchammas/spark,dbtsai/spark,wangyum/spark,holdenk/spark,gengliangwang/spark,gengliangwang/spark,mahak/spark,cloud-fan/spark,dbtsai/spark,zero323/spark,wangyum/spark,zzcclp/spark,chuckchen/spark,rednaxelafx/apache-spark,HyukjinKwon/spark,WeichenXu123/spark,witgo/spark,wangmiao1981/spark,maropu/spark,gengliangwang/spark,wangmiao1981/spark,HyukjinKwon/spark,wangmiao1981/spark,apache/spark,rednaxelafx/apache-spark,maropu/spark,apache/spark,ptkool/spark,mahak/spark,apache/spark,JoshRosen/spark,wzhfy/spark,ConeyLiu/spark,dbtsai/spark,wangyum/spark,srowen/spark,hvanhovell/spark,dongjoon-hyun/spark,srowen/spark,wzhfy/spark,ueshin/apache-spark,rednaxelafx/apache-spark,shuangshuangwang/spark,mahak/spark,shaneknapp/spark,hvanhovell/spark,rednaxelafx/apache-spark,milliman/spark,milliman/spark,vinodkc/spark,rednaxelafx/apache-spark,ueshin/apache-spark,zero323/spark,HyukjinKwon/spark,zero323/spark,shuangshuangwang/spark,milliman/spark,zero323/spark,ConeyLiu/spark,zzcclp/spark,ConeyLiu/spark,chuckchen/spark,dongjoon-hyun/spark,nchammas/spark,taroplus/spark,spark-test/spark,xuanyuanking/spark,WeichenXu123/spark,mahak/spark,jiangxb1987/spark,WeichenXu123/spark,shaneknapp/spark,xuanyuanking/spark,JoshRosen/spark,cloud-fan/spark,srowen/spark,shuangshuangwang/spark,WeichenXu123/spark,zzcclp/spark,chuckchen/spark,mahak/spark,dongjoon-hyun/spark,hvanhovell/spark,ptkool/spark,wzhfy/spark,shaneknapp/spark,dongjoon-hyun/spark,BryanCutler/spark,xuanyuanking/spark,ptkool/spark,WeichenXu123/spark,srowen/spark,spark-test/spark,taroplus/spark,dongjoon-hyun/spark,maropu/spark,cloud-fan/spark,JoshRosen/spark,gengliangwang/spark,vinodkc/spark,vinodkc/spark,holdenk/spark,zzcclp/spark,zzcclp/spark,srowen/spark,holdenk/spark,jiangxb1987/spark,wangmiao1981/spark,taroplus/spark,shuangshuangwang/spark,chuckchen/spark,wangyum/spark,dongjoon-hyun/spark,nchammas/spark,wzhfy/spark,milliman/spark,maropu/spark,taroplus/spark,vinodkc/spark,ueshin/apache-spark,zero323/spark,apache/spark,xuanyuanking/spark,spark-test/spark,hvanhovell/spark,chuckchen/spark,dongjoon-hyun/spark,shuangshuangwang/spark,ueshin/apache-spark,nchammas/spark,dbtsai/spark,chuckchen/spark,jiangxb1987/spark,ConeyLiu/spark,cloud-fan/spark,witgo/spark,BryanCutler/spark,gengliangwang/spark,wangmiao1981/spark,chuckchen/spark,maropu/spark,apache/spark,ptkool/spark,taroplus/spark,ptkool/spark,maropu/spark,spark-test/spark,jiangxb1987/spark,vinodkc/spark,milliman/spark,hvanhovell/spark,shuangshuangwang/spark,HyukjinKwon/spark,jiangxb1987/spark,ConeyLiu/spark,witgo/spark,jiangxb1987/spark,spark-test/spark,zzcclp/spark,BryanCutler/spark,mahak/spark,mahak/spark,zero323/spark,dbtsai/spark,hvanhovell/spark,gengliangwang/spark,cloud-fan/spark,BryanCutler/spark,srowen/spark,dbtsai/spark,witgo/spark,jiangxb1987/spark,nchammas/spark,vinodkc/spark,WeichenXu123/spark,BryanCutler/spark,ueshin/apache-spark,milliman/spark,shaneknapp/spark,shaneknapp/spark,nchammas/spark,wangyum/spark,JoshRosen/spark,witgo/spark,ConeyLiu/spark,wangyum/spark,nchammas/spark,vinodkc/spark,ptkool/spark,wangmiao1981/spark,wangyum/spark,rednaxelafx/apache-spark,apache/spark,zzcclp/spark,shaneknapp/spark,wangmiao1981/spark,JoshRosen/spark,witgo/spark,rednaxelafx/apache-spark,WeichenXu123/spark,HyukjinKwon/spark,ueshin/apache-spark