SPARK-1162 Added top in python.
SPARK-1162 Added top in python.

Author: Prashant Sharma <prashant.s@imaginea.com>

Closes #93 from ScrapCodes/SPARK-1162/pyspark-top-takeOrdered and squashes the following commits:

ece1fa4 [Prashant Sharma] Added top in python.

ioana-delaney/spark,srowen/spark,andrewor14/spark,jianran/spark,shubhamchopra/spark,bdrillard/spark,saltstar/spark,kevinyu98/spark,SnappyDataInc/spark,skonto/spark,BryanCutler/spark,andrewor14/iolap,metamx/spark,ueshin/apache-spark,markhamstra/spark,Aegeaner/spark,SnappyDataInc/spark,1haodian/spark,techaddict/spark,narahari92/spark,ioana-delaney/spark,joseph-torres/spark,techaddict/spark,aosagie/spark,hvanhovell/spark,sureshthalamati/spark,techaddict/spark,aray/spark,minixalpha/spark,kimoonkim/spark,xflin/spark,mdespriee/spark,bravo-zhang/spark,szhem/spark,cloud-fan/spark,caneGuy/spark,hvanhovell/spark,tengpeng/spark,publicRoman/spark,maropu/spark,janewangfb/spark,brad-kaiser/spark,adrian-ionescu/apache-spark,sachintyagi22/spark,jrshust/spark,zhouyejoe/spark,jiangxb1987/spark,bOOm-X/spark,sureshthalamati/spark,loneknightpy/spark,SHASHANKB/spark,loneknightpy/spark,jlopezmalla/spark,kiszk/spark,setjet/spark,wangmiao1981/spark,haowu80s/spark,janewangfb/spark,shuangshuangwang/spark,ibm-research-ireland/sparkoscope,dongjoon-hyun/spark,haowu80s/spark,dbtsai/spark,publicRoman/spark,icexelloss/spark,rikima/spark,bOOm-X/spark,byakuinss/spark,dbtsai/spark,lxsmnv/spark,ioana-delaney/spark,tejasapatil/spark,shuangshuangwang/spark,hvanhovell/spark,rikima/spark,1haodian/spark,loneknightpy/spark,minixalpha/spark,apache-spark-on-k8s/spark,spark-test/spark,Aegeaner/spark,zero323/spark,jianran/spark,zhouyejoe/spark,dhruve/spark,pgandhi999/spark,saturday-shi/spark,skonto/spark,ptkool/spark,WindCanDie/spark,darionyaphet/spark,pronix/spark,ibm-research-ireland/sparkoscope,wzhfy/spark,andrewor14/spark,eyalfa/spark,1haodian/spark,shubhamchopra/spark,ueshin/apache-spark,ioana-delaney/spark,hhbyyh/spark,milliman/spark,saltstar/spark,ericvandenbergfb/spark,apache-spark-on-k8s/spark,liyichao/spark,gioenn/xSpark,huang1900/spark,lvdongr/spark,eyalfa/spark,kevinyu98/spark,metamx/spark,nlalevee/spark,BryanCutler/spark,dhruve/spark,wangyum/spark,srowen/spark,witgo/spark,BryanCutler/spark,shaneknapp/spark,holdenk/spark,ron8hu/spark,tejasapatil/spark,kiszk/spark,michalsenkyr/spark,cin/spark,HyukjinKwon/spark,dbtsai/spark,saltstar/spark,spark-test/spark,ajaysaini725/spark,1haodian/spark,cloud-fan/spark,michalsenkyr/spark,debugger87/spark,ibm-research-ireland/sparkoscope,shaneknapp/spark,UndeadBaneGitHub/spark,xuanyuanking/spark,witgo/spark,panfengfeng/spark,someorz/spark,rikima/spark,jiangxb1987/spark,ddna1021/spark,SnappyDataInc/spark,guoxiaolongzte/spark,huang1900/spark,saturday-shi/spark,saltstar/spark,apache/spark,facaiy/spark,kimoonkim/spark,michalsenkyr/spark,ron8hu/spark,actuaryzhang/spark,Panos-Bletsos/spark-cost-model-optimizer,aokolnychyi/spark,kiszk/spark,rezasafi/spark,rezasafi/spark,tengpeng/spark,gioenn/xSpark,JerryLead/spark,ajaysaini725/spark,markhamstra/spark,caneGuy/spark,mdespriee/spark,sureshthalamati/spark,darionyaphet/spark,map222/spark,Panos-Bletsos/spark-cost-model-optimizer,debugger87/spark,ueshin/apache-spark,sachintyagi22/spark,mzl9039/spark,milliman/spark,liyichao/spark,xflin/spark,highfei2011/spark,someorz/spark,SHASHANKB/spark,ibm-research-ireland/sparkoscope,ptkool/spark,tengpeng/spark,minixalpha/spark,aray/spark,stanzhai/spark,ueshin/apache-spark,darionyaphet/spark,wzhfy/spark,gioenn/xSpark,haowu80s/spark,lxsmnv/spark,zero323/spark,hhbyyh/spark,yanboliang/spark,joseph-torres/spark,publicRoman/spark,dbtsai/spark,debugger87/spark,cin/spark,spark-test/spark,jiangxb1987/spark,rednaxelafx/apache-spark,jkbradley/spark,adrian-ionescu/apache-spark,ahnqirage/spark,JerryLead/spark,esi-mineset/spark,WeichenXu123/spark,zuotingbing/spark,icexelloss/spark,tengpeng/spark,rezasafi/spark,caneGuy/spark,ptkool/spark,dhruve/spark,nlalevee/spark,zzcclp/spark,srowen/spark,jkbradley/spark,witgo/spark,ron8hu/spark,guoxiaolongzte/spark,eyalfa/spark,kissmetrics/spark,sureshthalamati/spark,JoshRosen/spark,jkbradley/spark,markhamstra/spark,dongjoon-hyun/spark,panfengfeng/spark,lxsmnv/spark,zuotingbing/spark,facaiy/spark,WindCanDie/spark,minixalpha/spark,JerryLead/spark,goldmedal/spark,apache/spark,lxsmnv/spark,WeichenXu123/spark,bravo-zhang/spark,facaiy/spark,huang1900/spark,lvdongr/spark,aokolnychyi/spark,techaddict/spark,techaddict/spark,liyichao/spark,liutang123/spark,JoshRosen/spark,ConeyLiu/spark,bdrillard/spark,cloud-fan/spark,ericvandenbergfb/spark,rezasafi/spark,maropu/spark,mike0sv/spark,xuanyuanking/spark,akopich/spark,akopich/spark,shaneknapp/spark,hvanhovell/spark,nilsgrabbert/spark,HyukjinKwon/spark,ahnqirage/spark,cloud-fan/spark,Aegeaner/spark,michalsenkyr/spark,aosagie/spark,poffuomo/spark,szhem/spark,jkbradley/spark,highfei2011/spark,rednaxelafx/apache-spark,bdrillard/spark,caneGuy/spark,poffuomo/spark,akopich/spark,alunarbeach/spark,sachintyagi22/spark,UndeadBaneGitHub/spark,panfengfeng/spark,BryanCutler/spark,ueshin/apache-spark,shubhamchopra/spark,andrewor14/spark,sahilTakiar/spark,caneGuy/spark,kissmetrics/spark,nilsgrabbert/spark,stanzhai/spark,huang1900/spark,andrewor14/spark,andrewor14/spark,HyukjinKwon/spark,map222/spark,hhbyyh/spark,brad-kaiser/spark,rekhajoshm/spark,ron8hu/spark,ajaysaini725/spark,szhem/spark,kissmetrics/spark,andrewor14/iolap,bdrillard/spark,dongjoon-hyun/spark,shuangshuangwang/spark,ConeyLiu/spark,LantaoJin/spark,lvdongr/spark,ahnqirage/spark,mahak/spark,markhamstra/spark,jrshust/spark,mdespriee/spark,brad-kaiser/spark,icexelloss/spark,loneknightpy/spark,eyalfa/spark,hhbyyh/spark,kissmetrics/spark,dbtsai/spark,stanzhai/spark,publicRoman/spark,lxsmnv/spark,maropu/spark,rikima/spark,LantaoJin/spark,map222/spark,goldmedal/spark,debugger87/spark,publicRoman/spark,wzhfy/spark,someorz/spark,spark-test/spark,cin/spark,akopich/spark,big-pegasus/spark,skonto/spark,kimoonkim/spark,xuanyuanking/spark,kiszk/spark,xuanyuanking/spark,haowu80s/spark,narahari92/spark,lxsmnv/spark,xuanyuanking/spark,dhruve/spark,jiangxb1987/spark,patrick-nicholson/spark,patrick-nicholson/spark,shubhamchopra/spark,LantaoJin/spark,dbtsai/spark,apache-spark-on-k8s/spark,spark-test/spark,LantaoJin/spark,zhouyejoe/spark,shuangshuangwang/spark,poffuomo/spark,vinodkc/spark,jlopezmalla/spark,shubhamchopra/spark,highfei2011/spark,actuaryzhang/spark,highfei2011/spark,bdrillard/spark,jiangxb1987/spark,sahilTakiar/spark,bravo-zhang/spark,wangmiao1981/spark,SnappyDataInc/spark,goldmedal/spark,jkbradley/spark,mahak/spark,kimoonkim/spark,zero323/spark,holdenk/spark,nchammas/spark,michalsenkyr/spark,UndeadBaneGitHub/spark,loneknightpy/spark,jianran/spark,WeichenXu123/spark,witgo/spark,jrshust/spark,rezasafi/spark,kevinyu98/spark,ptkool/spark,liyichao/spark,rekhajoshm/spark,sachintyagi22/spark,holdenk/spark,JoshRosen/spark,michalsenkyr/spark,kiszk/spark,ron8hu/spark,aokolnychyi/spark,shaneknapp/spark,brad-kaiser/spark,caneGuy/spark,gengliangwang/spark,gengliangwang/spark,ddna1021/spark,yanboliang/spark,liutang123/spark,jlopezmalla/spark,alunarbeach/spark,ueshin/apache-spark,jianran/spark,zhouyejoe/spark,wangyum/spark,rikima/spark,alunarbeach/spark,bravo-zhang/spark,debugger87/spark,zuotingbing/spark,xflin/spark,liutang123/spark,wangmiao1981/spark,pronix/spark,zzcclp/spark,mdespriee/spark,markhamstra/spark,cin/spark,markhamstra/spark,cin/spark,milliman/spark,holdenk/spark,alunarbeach/spark,kimoonkim/spark,ioana-delaney/spark,saturday-shi/spark,nlalevee/spark,SnappyDataInc/spark,andrewor14/spark,MLnick/spark,narahari92/spark,mahak/spark,guoxiaolongzte/spark,WeichenXu123/spark,rekhajoshm/spark,guoxiaolongzte/spark,pgandhi999/spark,akopich/spark,JerryLead/spark,pgandhi999/spark,kissmetrics/spark,srowen/spark,jkbradley/spark,nilsgrabbert/spark,panfengfeng/spark,SHASHANKB/spark,vinodkc/spark,ioana-delaney/spark,pgandhi999/spark,janewangfb/spark,wangyum/spark,byakuinss/spark,sachintyagi22/spark,apache-spark-on-k8s/spark,bdrillard/spark,markhamstra/spark,publicRoman/spark,mike0sv/spark,wangmiao1981/spark,zzcclp/spark,shubhamchopra/spark,sachintyagi22/spark,patrick-nicholson/spark,map222/spark,holdenk/spark,bOOm-X/spark,cin/spark,nchammas/spark,setjet/spark,kimoonkim/spark,sahilTakiar/spark,SHASHANKB/spark,eyalfa/spark,gioenn/xSpark,pgandhi999/spark,chuckchen/spark,akopich/spark,nilsgrabbert/spark,vinodkc/spark,gengliangwang/spark,janewangfb/spark,mike0sv/spark,big-pegasus/spark,wzhfy/spark,taroplus/spark,LantaoJin/spark,techaddict/spark,SHASHANKB/spark,haowu80s/spark,dhruve/spark,taroplus/spark,rezasafi/spark,minixalpha/spark,aokolnychyi/spark,hhbyyh/spark,jianran/spark,skonto/spark,JerryLead/spark,taroplus/spark,gioenn/xSpark,byakuinss/spark,techaddict/spark,publicRoman/spark,UndeadBaneGitHub/spark,wzhfy/spark,dongjoon-hyun/spark,tejasapatil/spark,gioenn/xSpark,ericvandenbergfb/spark,Panos-Bletsos/spark-cost-model-optimizer,rikima/spark,xflin/spark,BryanCutler/spark,big-pegasus/spark,esi-mineset/spark,highfei2011/spark,taroplus/spark,1haodian/spark,sahilTakiar/spark,zzcclp/spark,zzcclp/spark,wangyum/spark,poffuomo/spark,stanzhai/spark,MLnick/spark,akopich/spark,HyukjinKwon/spark,nlalevee/spark,apache/spark,brad-kaiser/spark,esi-mineset/spark,MLnick/spark,jrshust/spark,zuotingbing/spark,joseph-torres/spark,panfengfeng/spark,ConeyLiu/spark,chuckchen/spark,goldmedal/spark,wangyum/spark,SHASHANKB/spark,spark-test/spark,chuckchen/spark,zero323/spark,byakuinss/spark,zero323/spark,BryanCutler/spark,skonto/spark,gengliangwang/spark,sahilTakiar/spark,jrshust/spark,taroplus/spark,jiangxb1987/spark,JoshRosen/spark,apache/spark,map222/spark,patrick-nicholson/spark,darionyaphet/spark,huang1900/spark,zzcclp/spark,maropu/spark,tejasapatil/spark,aray/spark,gengliangwang/spark,map222/spark,facaiy/spark,kiszk/spark,JoshRosen/spark,jlopezmalla/spark,Panos-Bletsos/spark-cost-model-optimizer,skonto/spark,liyichao/spark,sahilTakiar/spark,rekhajoshm/spark,icexelloss/spark,caneGuy/spark,shaneknapp/spark,joseph-torres/spark,apache/spark,bOOm-X/spark,michalsenkyr/spark,mike0sv/spark,aray/spark,SnappyDataInc/spark,holdenk/spark,HyukjinKwon/spark,icexelloss/spark,LantaoJin/spark,metamx/spark,yanboliang/spark,mzl9039/spark,guoxiaolongzte/spark,wangmiao1981/spark,zhouyejoe/spark,ajaysaini725/spark,pgandhi999/spark,mahak/spark,nchammas/spark,zzcclp/spark,minixalpha/spark,mahak/spark,lvdongr/spark,panfengfeng/spark,pronix/spark,ahnqirage/spark,jlopezmalla/spark,milliman/spark,facaiy/spark,Aegeaner/spark,jlopezmalla/spark,xflin/spark,szhem/spark,ajaysaini725/spark,cloud-fan/spark,JerryLead/spark,janewangfb/spark,pronix/spark,tengpeng/spark,hvanhovell/spark,setjet/spark,metamx/spark,chuckchen/spark,nilsgrabbert/spark,eyalfa/spark,saltstar/spark,highfei2011/spark,pgandhi999/spark,bravo-zhang/spark,big-pegasus/spark,apache/spark,srowen/spark,cloud-fan/spark,xflin/spark,dongjoon-hyun/spark,MLnick/spark,spark-test/spark,jrshust/spark,UndeadBaneGitHub/spark,srowen/spark,ptkool/spark,patrick-nicholson/spark,guoxiaolongzte/spark,poffuomo/spark,mahak/spark,HyukjinKwon/spark,yanboliang/spark,wangmiao1981/spark,rekhajoshm/spark,aosagie/spark,aray/spark,byakuinss/spark,Panos-Bletsos/spark-cost-model-optimizer,setjet/spark,JoshRosen/spark,big-pegasus/spark,shuangshuangwang/spark,big-pegasus/spark,hvanhovell/spark,wzhfy/spark,hvanhovell/spark,ConeyLiu/spark,narahari92/spark,aosagie/spark,ibm-research-ireland/sparkoscope,xuanyuanking/spark,aray/spark,janewangfb/spark,szhem/spark,bdrillard/spark,someorz/spark,goldmedal/spark,SHASHANKB/spark,tejasapatil/spark,ddna1021/spark,mdespriee/spark,ibm-research-ireland/sparkoscope,skonto/spark,chuckchen/spark,pronix/spark,icexelloss/spark,metamx/spark,Aegeaner/spark,mike0sv/spark,kevinyu98/spark,map222/spark,jlopezmalla/spark,narahari92/spark,dongjoon-hyun/spark,poffuomo/spark,wangmiao1981/spark,debugger87/spark,ericvandenbergfb/spark,alunarbeach/spark,lxsmnv/spark,ConeyLiu/spark,jiangxb1987/spark,liyichao/spark,stanzhai/spark,WindCanDie/spark,sureshthalamati/spark,kevinyu98/spark,kissmetrics/spark,lvdongr/spark,kiszk/spark,WindCanDie/spark,hhbyyh/spark,narahari92/spark,dbtsai/spark,szhem/spark,darionyaphet/spark,maropu/spark,aray/spark,esi-mineset/spark,aosagie/spark,liutang123/spark,zero323/spark,rednaxelafx/apache-spark,patrick-nicholson/spark,MLnick/spark,wzhfy/spark,ron8hu/spark,bravo-zhang/spark,WindCanDie/spark,liutang123/spark,huang1900/spark,WeichenXu123/spark,mzl9039/spark,guoxiaolongzte/spark,jrshust/spark,sahilTakiar/spark,andrewor14/iolap,actuaryzhang/spark,dhruve/spark,mzl9039/spark,jianran/spark,yanboliang/spark,mdespriee/spark,shaneknapp/spark,debugger87/spark,nlalevee/spark,wangyum/spark,rednaxelafx/apache-spark,liyichao/spark,ddna1021/spark,wangyum/spark,someorz/spark,SnappyDataInc/spark,actuaryzhang/spark,witgo/spark,BryanCutler/spark,shubhamchopra/spark,joseph-torres/spark,metamx/spark,bravo-zhang/spark,chuckchen/spark,dhruve/spark,ajaysaini725/spark,janewangfb/spark,tengpeng/spark,adrian-ionescu/apache-spark,huang1900/spark,mike0sv/spark,ahnqirage/spark,panfengfeng/spark,eyalfa/spark,saturday-shi/spark,andrewor14/iolap,ConeyLiu/spark,ioana-delaney/spark,esi-mineset/spark,cloud-fan/spark,nchammas/spark,nilsgrabbert/spark,zuotingbing/spark,zhouyejoe/spark,taroplus/spark,mdespriee/spark,adrian-ionescu/apache-spark,setjet/spark,milliman/spark,Aegeaner/spark,icexelloss/spark,aosagie/spark,kevinyu98/spark,lvdongr/spark,actuaryzhang/spark,maropu/spark,gioenn/xSpark,aosagie/spark,LantaoJin/spark,aokolnychyi/spark,ddna1021/spark,vinodkc/spark,andrewor14/spark,JerryLead/spark,ajaysaini725/spark,rekhajoshm/spark,esi-mineset/spark,facaiy/spark,xflin/spark,ueshin/apache-spark,matthewfranglen/spark,rednaxelafx/apache-spark,andrewor14/iolap,aokolnychyi/spark,hhbyyh/spark,ddna1021/spark,shaneknapp/spark,mzl9039/spark,rednaxelafx/apache-spark,saturday-shi/spark,tejasapatil/spark,highfei2011/spark,someorz/spark,saltstar/spark,rekhajoshm/spark,kimoonkim/spark,milliman/spark,brad-kaiser/spark,liutang123/spark,mzl9039/spark,gengliangwang/spark,1haodian/spark,andrewor14/iolap,bOOm-X/spark,stanzhai/spark,liutang123/spark,nilsgrabbert/spark,WindCanDie/spark,loneknightpy/spark,rednaxelafx/apache-spark,darionyaphet/spark,lvdongr/spark,taroplus/spark,milliman/spark,adrian-ionescu/apache-spark,shuangshuangwang/spark,metamx/spark,setjet/spark,andrewor14/iolap,vinodkc/spark,apache-spark-on-k8s/spark,kevinyu98/spark,vinodkc/spark,JoshRosen/spark,nlalevee/spark,narahari92/spark,mzl9039/spark,facaiy/spark,holdenk/spark,ptkool/spark,adrian-ionescu/apache-spark,saltstar/spark,ericvandenbergfb/spark,WeichenXu123/spark,saturday-shi/spark,pronix/spark,setjet/spark,byakuinss/spark,ahnqirage/spark,apache-spark-on-k8s/spark,xuanyuanking/spark,WindCanDie/spark,jianran/spark,bOOm-X/spark,tengpeng/spark,loneknightpy/spark,someorz/spark,zuotingbing/spark,big-pegasus/spark,cin/spark,1haodian/spark,apache-spark-on-k8s/spark,joseph-torres/spark,sachintyagi22/spark,witgo/spark,nchammas/spark,haowu80s/spark,nchammas/spark,actuaryzhang/spark,adrian-ionescu/apache-spark,Aegeaner/spark,srowen/spark,ddna1021/spark,gengliangwang/spark,chuckchen/spark,zero323/spark,rikima/spark,ericvandenbergfb/spark,jkbradley/spark,tejasapatil/spark,alunarbeach/spark,UndeadBaneGitHub/spark,maropu/spark,darionyaphet/spark,goldmedal/spark,yanboliang/spark,minixalpha/spark,goldmedal/spark,esi-mineset/spark,kissmetrics/spark,ericvandenbergfb/spark,witgo/spark,zuotingbing/spark,nchammas/spark,MLnick/spark,actuaryzhang/spark,yanboliang/spark,shuangshuangwang/spark,dongjoon-hyun/spark,nlalevee/spark,ConeyLiu/spark,zhouyejoe/spark,ron8hu/spark,alunarbeach/spark,apache/spark,Panos-Bletsos/spark-cost-model-optimizer,patrick-nicholson/spark,ahnqirage/spark,sureshthalamati/spark,ptkool/spark,aokolnychyi/spark,szhem/spark,brad-kaiser/spark,WeichenXu123/spark,mike0sv/spark,MLnick/spark,ibm-research-ireland/sparkoscope,vinodkc/spark,bOOm-X/spark,saturday-shi/spark,HyukjinKwon/spark,rezasafi/spark,joseph-torres/spark,stanzhai/spark,poffuomo/spark,mahak/spark,UndeadBaneGitHub/spark,byakuinss/spark,sureshthalamati/spark,Panos-Bletsos/spark-cost-model-optimizer