Update im2rec.py revised for python3 compatible (#3004)
Update im2rec.py revised for python3 compatible (#3004)

python3 compatible
Prasad9/incubator-mxnet,stefanhenneking/mxnet,jiajiechen/mxnet,stefanhenneking/mxnet,hesseltuinhof/mxnet,hesseltuinhof/mxnet,DR08/mxnet,navrasio/mxnet,weleen/mxnet,Prasad9/incubator-mxnet,szha/mxnet,CodingCat/mxnet,sxjscience/mxnet,formath/mxnet,EvanzzzZ/mxnet,likelyzhao/mxnet,Northrend/mxnet,lxn2/mxnet,coder-james/mxnet,jermainewang/mxnet,precedenceguo/mxnet,precedenceguo/mxnet,eric-haibin-lin/mxnet,leezu/mxnet,madjam/mxnet,eric-haibin-lin/mxnet,formath/mxnet,nicklhy/mxnet,jiajiechen/mxnet,Prasad9/incubator-mxnet,jennyzhang0215/incubator-mxnet,kkk669/mxnet,crazy-cat/incubator-mxnet,antoan2/incubator-mxnet,DR08/mxnet,Mega-DatA-Lab/mxnet,larroy/mxnet,sxjscience/mxnet,saurabh3949/mxnet,ShownX/incubator-mxnet,jiajiechen/mxnet,luoyetx/mxnet,fullfanta/mxnet,jermainewang/mxnet,CodingCat/mxnet,indhub/mxnet,Northrend/mxnet,lxn2/mxnet,arank/mxnet,pluskid/mxnet,rahul003/mxnet,tornadomeet/mxnet,arikpoz/mxnet,Guneet-Dhillon/mxnet,danithaca/mxnet,leezu/mxnet,vikingMei/mxnet,vikingMei/mxnet,Mega-DatA-Lab/mxnet,Guneet-Dhillon/mxnet,eric-haibin-lin/mxnet,LinkHS/incubator-mxnet,apache/incubator-mxnet,ptrendx/mxnet,yajiedesign/mxnet,leezu/mxnet,likelyzhao/mxnet,fullfanta/mxnet,indhub/mxnet,wangyum/mxnet,rahul003/mxnet,antoan2/incubator-mxnet,coder-james/mxnet,Prasad9/incubator-mxnet,larroy/mxnet,navrasio/mxnet,luoyetx/mxnet,rishita/mxnet,szha/mxnet,sergeykolychev/mxnet,dmlc/mxnet,apaleyes/mxnet,rahul003/mxnet,stefanhenneking/mxnet,precedenceguo/mxnet,jermainewang/mxnet,indhub/mxnet,jennyzhang0215/incubator-mxnet,ShownX/incubator-mxnet,mbaijal/incubator-mxnet,leezu/mxnet,mbaijal/incubator-mxnet,zhreshold/mxnet,jennyzhang0215/incubator-mxnet,precedenceguo/mxnet,Northrend/mxnet,apaleyes/mxnet,TuSimple/mxnet,indhub/mxnet,luoyetx/mxnet,likelyzhao/mxnet,Mega-DatA-Lab/mxnet,fullfanta/mxnet,sxjscience/mxnet,Northrend/mxnet,jamesliu/mxnet,sergeykolychev/mxnet,jermainewang/mxnet,jennyzhang0215/incubator-mxnet,leezu/mxnet,hesseltuinhof/mxnet,DR08/mxnet,ptrendx/mxnet,gautamkmr/incubator-mxnet,apaleyes/mxnet,smolix/incubator-mxnet,leezu/mxnet,ShownX/incubator-mxnet,apaleyes/mxnet,zhreshold/mxnet,arank/mxnet,zhreshold/mxnet,sergeykolychev/mxnet,jermainewang/mxnet,coder-james/mxnet,solin319/incubator-mxnet,antoan2/incubator-mxnet,arikpoz/mxnet,fullfanta/mxnet,madjam/mxnet,saurabh3949/mxnet,nicklhy/mxnet,leezu/mxnet,sergeykolychev/mxnet,coder-james/mxnet,hpi-xnor/BMXNet,DickJC123/mxnet,yuruofeifei/mxnet,danithaca/mxnet,vikingMei/mxnet,rahul003/mxnet,xcgoner/dist-mxnet,ZihengJiang/mxnet,jiajiechen/mxnet,Ldpe2G/mxnet,apache/incubator-mxnet,yuruofeifei/mxnet,coder-james/mxnet,TuSimple/mxnet,apaleyes/mxnet,CodingCat/mxnet,thirdwing/mxnet,tornadomeet/mxnet,ShownX/incubator-mxnet,ShownX/incubator-mxnet,sxjscience/mxnet,dmlc/mxnet,solin319/incubator-mxnet,formath/mxnet,arikpoz/mxnet,yuruofeifei/mxnet,tlby/mxnet,lxn2/mxnet,Guneet-Dhillon/mxnet,eric-haibin-lin/mxnet,hotpxl/mxnet,DR08/mxnet,saurabh3949/mxnet,jiajiechen/mxnet,ZihengJiang/mxnet,LinkHS/incubator-mxnet,hesseltuinhof/mxnet,jermainewang/mxnet,rahul003/mxnet,madjam/mxnet,vikingMei/mxnet,jiajiechen/mxnet,piiswrong/mxnet,szha/mxnet,leezu/mxnet,hotpxl/mxnet,reminisce/mxnet,hesseltuinhof/mxnet,piiswrong/mxnet,Guneet-Dhillon/mxnet,pluskid/mxnet,nicklhy/mxnet,precedenceguo/mxnet,madjam/mxnet,kevinthesun/mxnet,yajiedesign/mxnet,ShownX/incubator-mxnet,Northrend/mxnet,ShownX/incubator-mxnet,arikpoz/mxnet,ForkedReposBak/mxnet,luoyetx/mxnet,jamesliu/mxnet,zhreshold/mxnet,formath/mxnet,danithaca/mxnet,hesseltuinhof/mxnet,danithaca/mxnet,pluskid/mxnet,piiswrong/mxnet,nicklhy/mxnet,antoan2/incubator-mxnet,DickJC123/mxnet,xcgoner/dist-mxnet,saurabh3949/mxnet,indhub/mxnet,dmlc/mxnet,zhreshold/mxnet,hotpxl/mxnet,arank/mxnet,arikpoz/mxnet,EvanzzzZ/mxnet,formath/mxnet,Guneet-Dhillon/mxnet,mbaijal/incubator-mxnet,xcgoner/dist-mxnet,pluskid/mxnet,tornadomeet/mxnet,rahul003/mxnet,hotpxl/mxnet,hpi-xnor/BMXNet,tornadomeet/mxnet,danithaca/mxnet,kkk669/mxnet,coder-james/mxnet,Mega-DatA-Lab/mxnet,madjam/mxnet,gautamkmr/incubator-mxnet,reminisce/mxnet,reminisce/mxnet,gautamkmr/incubator-mxnet,indhub/mxnet,hotpxl/mxnet,Ldpe2G/mxnet,jennyzhang0215/incubator-mxnet,sergeykolychev/mxnet,precedenceguo/mxnet,yuruofeifei/mxnet,kevinthesun/mxnet,ZihengJiang/mxnet,szha/mxnet,CodingCat/mxnet,navrasio/mxnet,dmlc/mxnet,lxn2/mxnet,Mega-DatA-Lab/mxnet,ZihengJiang/mxnet,hpi-xnor/BMXNet,jermainewang/mxnet,zhreshold/mxnet,pluskid/mxnet,lxn2/mxnet,weleen/mxnet,smolix/incubator-mxnet,eric-haibin-lin/mxnet,precedenceguo/mxnet,antoan2/incubator-mxnet,weleen/mxnet,yuruofeifei/mxnet,hpi-xnor/BMXNet,Prasad9/incubator-mxnet,DickJC123/mxnet,navrasio/mxnet,ForkedReposBak/mxnet,ptrendx/mxnet,ptrendx/mxnet,kevinthesun/mxnet,Ldpe2G/mxnet,thirdwing/mxnet,solin319/incubator-mxnet,ykim362/mxnet,Northrend/mxnet,hesseltuinhof/mxnet,sergeykolychev/mxnet,CodingCat/mxnet,TuSimple/mxnet,ptrendx/mxnet,formath/mxnet,sxjscience/mxnet,crazy-cat/incubator-mxnet,eric-haibin-lin/mxnet,apaleyes/mxnet,likelyzhao/mxnet,hpi-xnor/BMXNet,luoyetx/mxnet,leezu/mxnet,reminisce/mxnet,eric-haibin-lin/mxnet,vikingMei/mxnet,xcgoner/dist-mxnet,piiswrong/mxnet,jamesliu/mxnet,kkk669/mxnet,hesseltuinhof/mxnet,kkk669/mxnet,dmlc/mxnet,tornadomeet/mxnet,reminisce/mxnet,ShownX/incubator-mxnet,yajiedesign/mxnet,smolix/incubator-mxnet,kkk669/mxnet,sergeykolychev/mxnet,Mega-DatA-Lab/mxnet,szha/mxnet,saurabh3949/mxnet,lxn2/mxnet,thirdwing/mxnet,CodingCat/mxnet,ForkedReposBak/mxnet,apache/incubator-mxnet,antoan2/incubator-mxnet,Prasad9/incubator-mxnet,EvanzzzZ/mxnet,TuSimple/mxnet,vikingMei/mxnet,Prasad9/incubator-mxnet,luoyetx/mxnet,DR08/mxnet,fullfanta/mxnet,crazy-cat/incubator-mxnet,tlby/mxnet,ykim362/mxnet,TuSimple/mxnet,Ldpe2G/mxnet,xcgoner/dist-mxnet,LinkHS/incubator-mxnet,arikpoz/mxnet,formath/mxnet,rishita/mxnet,larroy/mxnet,crazy-cat/incubator-mxnet,DR08/mxnet,saurabh3949/mxnet,vikingMei/mxnet,ForkedReposBak/mxnet,DR08/mxnet,sxjscience/mxnet,jennyzhang0215/incubator-mxnet,dmlc/mxnet,jennyzhang0215/incubator-mxnet,fullfanta/mxnet,mbaijal/incubator-mxnet,rishita/mxnet,smolix/incubator-mxnet,tornadomeet/mxnet,tlby/mxnet,navrasio/mxnet,antoan2/incubator-mxnet,sergeykolychev/mxnet,apaleyes/mxnet,hotpxl/mxnet,rishita/mxnet,thirdwing/mxnet,Guneet-Dhillon/mxnet,Guneet-Dhillon/mxnet,weleen/mxnet,LinkHS/incubator-mxnet,yuruofeifei/mxnet,kkk669/mxnet,tornadomeet/mxnet,Mega-DatA-Lab/mxnet,arikpoz/mxnet,ykim362/mxnet,gautamkmr/incubator-mxnet,CodingCat/mxnet,tlby/mxnet,ptrendx/mxnet,ptrendx/mxnet,piiswrong/mxnet,jiajiechen/mxnet,mbaijal/incubator-mxnet,solin319/incubator-mxnet,Prasad9/incubator-mxnet,crazy-cat/incubator-mxnet,tornadomeet/mxnet,zhreshold/mxnet,saurabh3949/mxnet,smolix/incubator-mxnet,szha/mxnet,crazy-cat/incubator-mxnet,yajiedesign/mxnet,piiswrong/mxnet,yajiedesign/mxnet,CodingCat/mxnet,ZihengJiang/mxnet,danithaca/mxnet,weleen/mxnet,kevinthesun/mxnet,EvanzzzZ/mxnet,yuruofeifei/mxnet,xcgoner/dist-mxnet,nicklhy/mxnet,ForkedReposBak/mxnet,pluskid/mxnet,weleen/mxnet,smolix/incubator-mxnet,lxn2/mxnet,ForkedReposBak/mxnet,rishita/mxnet,piiswrong/mxnet,wangyum/mxnet,kevinthesun/mxnet,ykim362/mxnet,larroy/mxnet,precedenceguo/mxnet,EvanzzzZ/mxnet,jamesliu/mxnet,dmlc/mxnet,LinkHS/incubator-mxnet,larroy/mxnet,navrasio/mxnet,eric-haibin-lin/mxnet,fullfanta/mxnet,kkk669/mxnet,hotpxl/mxnet,ForkedReposBak/mxnet,Guneet-Dhillon/mxnet,hpi-xnor/BMXNet,crazy-cat/incubator-mxnet,sxjscience/mxnet,xcgoner/dist-mxnet,kkk669/mxnet,jiajiechen/mxnet,Mega-DatA-Lab/mxnet,sxjscience/mxnet,reminisce/mxnet,Ldpe2G/mxnet,ShownX/incubator-mxnet,jamesliu/mxnet,tlby/mxnet,madjam/mxnet,apache/incubator-mxnet,yajiedesign/mxnet,stefanhenneking/mxnet,zhreshold/mxnet,Ldpe2G/mxnet,luoyetx/mxnet,thirdwing/mxnet,coder-james/mxnet,wangyum/mxnet,reminisce/mxnet,jamesliu/mxnet,precedenceguo/mxnet,antoan2/incubator-mxnet,jermainewang/mxnet,crazy-cat/incubator-mxnet,reminisce/mxnet,yajiedesign/mxnet,solin319/incubator-mxnet,jennyzhang0215/incubator-mxnet,larroy/mxnet,larroy/mxnet,antoan2/incubator-mxnet,piiswrong/mxnet,wangyum/mxnet,solin319/incubator-mxnet,madjam/mxnet,formath/mxnet,EvanzzzZ/mxnet,jamesliu/mxnet,tornadomeet/mxnet,ptrendx/mxnet,stefanhenneking/mxnet,solin319/incubator-mxnet,Prasad9/incubator-mxnet,reminisce/mxnet,thirdwing/mxnet,indhub/mxnet,ykim362/mxnet,smolix/incubator-mxnet,thirdwing/mxnet,wangyum/mxnet,Mega-DatA-Lab/mxnet,arank/mxnet,DR08/mxnet,CodingCat/mxnet,yuruofeifei/mxnet,ykim362/mxnet,TuSimple/mxnet,rishita/mxnet,szha/mxnet,LinkHS/incubator-mxnet,EvanzzzZ/mxnet,tlby/mxnet,Ldpe2G/mxnet,tlby/mxnet,kevinthesun/mxnet,luoyetx/mxnet,LinkHS/incubator-mxnet,tlby/mxnet,rahul003/mxnet,dmlc/mxnet,indhub/mxnet,coder-james/mxnet,wangyum/mxnet,ZihengJiang/mxnet,weleen/mxnet,thirdwing/mxnet,apaleyes/mxnet,jamesliu/mxnet,stefanhenneking/mxnet,stefanhenneking/mxnet,danithaca/mxnet,likelyzhao/mxnet,smolix/incubator-mxnet,navrasio/mxnet,zhreshold/mxnet,ForkedReposBak/mxnet,TuSimple/mxnet,szha/mxnet,formath/mxnet,mbaijal/incubator-mxnet,Ldpe2G/mxnet,nicklhy/mxnet,hpi-xnor/BMXNet,ptrendx/mxnet,fullfanta/mxnet,reminisce/mxnet,sxjscience/mxnet,navrasio/mxnet,rishita/mxnet,kevinthesun/mxnet,jamesliu/mxnet,gautamkmr/incubator-mxnet,ykim362/mxnet,TuSimple/mxnet,ZihengJiang/mxnet,saurabh3949/mxnet,stefanhenneking/mxnet,hesseltuinhof/mxnet,EvanzzzZ/mxnet,vikingMei/mxnet,xcgoner/dist-mxnet,gautamkmr/incubator-mxnet,danithaca/mxnet,LinkHS/incubator-mxnet,coder-james/mxnet,Northrend/mxnet,gautamkmr/incubator-mxnet,szha/mxnet,arank/mxnet,arikpoz/mxnet,pluskid/mxnet,apaleyes/mxnet,thirdwing/mxnet,rahul003/mxnet,likelyzhao/mxnet,kkk669/mxnet,yajiedesign/mxnet,pluskid/mxnet,likelyzhao/mxnet,EvanzzzZ/mxnet,crazy-cat/incubator-mxnet,gautamkmr/incubator-mxnet,likelyzhao/mxnet,rahul003/mxnet,ptrendx/mxnet,mbaijal/incubator-mxnet,nicklhy/mxnet,mbaijal/incubator-mxnet,navrasio/mxnet,ZihengJiang/mxnet,DickJC123/mxnet,sergeykolychev/mxnet,smolix/incubator-mxnet,tlby/mxnet,stefanhenneking/mxnet,hotpxl/mxnet,saurabh3949/mxnet,mbaijal/incubator-mxnet,nicklhy/mxnet,lxn2/mxnet,fullfanta/mxnet,arank/mxnet,nicklhy/mxnet,arank/mxnet,Guneet-Dhillon/mxnet,tlby/mxnet,madjam/mxnet,Northrend/mxnet,kevinthesun/mxnet,hpi-xnor/BMXNet,jiajiechen/mxnet,DR08/mxnet,ykim362/mxnet,hpi-xnor/BMXNet,TuSimple/mxnet,jennyzhang0215/incubator-mxnet,arank/mxnet,solin319/incubator-mxnet,arank/mxnet,larroy/mxnet,gautamkmr/incubator-mxnet,yajiedesign/mxnet,yuruofeifei/mxnet,indhub/mxnet,eric-haibin-lin/mxnet,xcgoner/dist-mxnet,danithaca/mxnet,rishita/mxnet,dmlc/mxnet,madjam/mxnet,ykim362/mxnet,rishita/mxnet,ForkedReposBak/mxnet,Ldpe2G/mxnet,weleen/mxnet,jermainewang/mxnet,pluskid/mxnet,piiswrong/mxnet,wangyum/mxnet,larroy/mxnet,solin319/incubator-mxnet,arikpoz/mxnet,wangyum/mxnet,vikingMei/mxnet,kevinthesun/mxnet,TuSimple/mxnet,wangyum/mxnet,LinkHS/incubator-mxnet,ZihengJiang/mxnet,Northrend/mxnet,hotpxl/mxnet,luoyetx/mxnet,weleen/mxnet,lxn2/mxnet,likelyzhao/mxnet