[py] Fix cookie tests for PhantomJS and other improvements
[py] Fix cookie tests for PhantomJS and other improvements

Dude-X/selenium,xmhubj/selenium,joshbruning/selenium,juangj/selenium,tbeadle/selenium,SeleniumHQ/selenium,oddui/selenium,jabbrwcky/selenium,TikhomirovSergey/selenium,chrisblock/selenium,jabbrwcky/selenium,gurayinan/selenium,asolntsev/selenium,dibagga/selenium,asashour/selenium,GorK-ChO/selenium,bayandin/selenium,davehunt/selenium,titusfortner/selenium,mach6/selenium,oddui/selenium,bayandin/selenium,twalpole/selenium,gurayinan/selenium,titusfortner/selenium,jabbrwcky/selenium,jsakamoto/selenium,TikhomirovSergey/selenium,Dude-X/selenium,carlosroh/selenium,mach6/selenium,markodolancic/selenium,5hawnknight/selenium,xmhubj/selenium,kalyanjvn1/selenium,mojwang/selenium,asashour/selenium,Ardesco/selenium,DrMarcII/selenium,valfirst/selenium,lmtierney/selenium,DrMarcII/selenium,Herst/selenium,Dude-X/selenium,SeleniumHQ/selenium,oddui/selenium,titusfortner/selenium,Jarob22/selenium,xsyntrex/selenium,jabbrwcky/selenium,joshmgrant/selenium,juangj/selenium,TikhomirovSergey/selenium,carlosroh/selenium,titusfortner/selenium,kalyanjvn1/selenium,carlosroh/selenium,chrisblock/selenium,juangj/selenium,Dude-X/selenium,SeleniumHQ/selenium,Jarob22/selenium,joshmgrant/selenium,Tom-Trumper/selenium,twalpole/selenium,bayandin/selenium,tbeadle/selenium,titusfortner/selenium,5hawnknight/selenium,gurayinan/selenium,Herst/selenium,GorK-ChO/selenium,valfirst/selenium,lmtierney/selenium,HtmlUnit/selenium,SeleniumHQ/selenium,dibagga/selenium,HtmlUnit/selenium,krmahadevan/selenium,5hawnknight/selenium,bayandin/selenium,asashour/selenium,mach6/selenium,asolntsev/selenium,mojwang/selenium,xsyntrex/selenium,Ardesco/selenium,xsyntrex/selenium,asolntsev/selenium,Herst/selenium,HtmlUnit/selenium,tbeadle/selenium,valfirst/selenium,twalpole/selenium,chrisblock/selenium,juangj/selenium,valfirst/selenium,dibagga/selenium,DrMarcII/selenium,TikhomirovSergey/selenium,jsakamoto/selenium,valfirst/selenium,SeleniumHQ/selenium,gurayinan/selenium,titusfortner/selenium,joshbruning/selenium,DrMarcII/selenium,asolntsev/selenium,jsakamoto/selenium,kalyanjvn1/selenium,titusfortner/selenium,twalpole/selenium,valfirst/selenium,tbeadle/selenium,carlosroh/selenium,kalyanjvn1/selenium,davehunt/selenium,xsyntrex/selenium,krmahadevan/selenium,Tom-Trumper/selenium,chrisblock/selenium,asolntsev/selenium,Ardesco/selenium,GorK-ChO/selenium,chrisblock/selenium,HtmlUnit/selenium,mojwang/selenium,bayandin/selenium,carlosroh/selenium,asashour/selenium,krmahadevan/selenium,joshmgrant/selenium,5hawnknight/selenium,chrisblock/selenium,davehunt/selenium,twalpole/selenium,Herst/selenium,bayandin/selenium,HtmlUnit/selenium,juangj/selenium,kalyanjvn1/selenium,jabbrwcky/selenium,xsyntrex/selenium,xsyntrex/selenium,tbeadle/selenium,kalyanjvn1/selenium,TikhomirovSergey/selenium,GorK-ChO/selenium,chrisblock/selenium,bayandin/selenium,joshbruning/selenium,markodolancic/selenium,markodolancic/selenium,Herst/selenium,davehunt/selenium,joshmgrant/selenium,krmahadevan/selenium,krmahadevan/selenium,jsakamoto/selenium,mach6/selenium,markodolancic/selenium,Jarob22/selenium,kalyanjvn1/selenium,lmtierney/selenium,joshmgrant/selenium,Jarob22/selenium,mojwang/selenium,Tom-Trumper/selenium,mach6/selenium,SeleniumHQ/selenium,markodolancic/selenium,joshbruning/selenium,jabbrwcky/selenium,xmhubj/selenium,markodolancic/selenium,Dude-X/selenium,jabbrwcky/selenium,GorK-ChO/selenium,Tom-Trumper/selenium,asolntsev/selenium,joshmgrant/selenium,Ardesco/selenium,jsakamoto/selenium,juangj/selenium,mojwang/selenium,joshbruning/selenium,SeleniumHQ/selenium,jsakamoto/selenium,asolntsev/selenium,xsyntrex/selenium,titusfortner/selenium,Ardesco/selenium,gurayinan/selenium,asashour/selenium,HtmlUnit/selenium,krmahadevan/selenium,Tom-Trumper/selenium,Tom-Trumper/selenium,kalyanjvn1/selenium,mojwang/selenium,markodolancic/selenium,bayandin/selenium,markodolancic/selenium,Jarob22/selenium,jabbrwcky/selenium,GorK-ChO/selenium,oddui/selenium,twalpole/selenium,tbeadle/selenium,lmtierney/selenium,dibagga/selenium,davehunt/selenium,HtmlUnit/selenium,5hawnknight/selenium,joshbruning/selenium,bayandin/selenium,SeleniumHQ/selenium,davehunt/selenium,Dude-X/selenium,mojwang/selenium,SeleniumHQ/selenium,gurayinan/selenium,oddui/selenium,dibagga/selenium,mojwang/selenium,Jarob22/selenium,tbeadle/selenium,TikhomirovSergey/selenium,Tom-Trumper/selenium,Ardesco/selenium,mach6/selenium,xsyntrex/selenium,kalyanjvn1/selenium,joshmgrant/selenium,Ardesco/selenium,mach6/selenium,krmahadevan/selenium,tbeadle/selenium,juangj/selenium,asolntsev/selenium,valfirst/selenium,carlosroh/selenium,twalpole/selenium,TikhomirovSergey/selenium,DrMarcII/selenium,jsakamoto/selenium,Herst/selenium,davehunt/selenium,Herst/selenium,xmhubj/selenium,oddui/selenium,valfirst/selenium,Dude-X/selenium,valfirst/selenium,asashour/selenium,joshmgrant/selenium,Tom-Trumper/selenium,oddui/selenium,juangj/selenium,xmhubj/selenium,jabbrwcky/selenium,krmahadevan/selenium,xmhubj/selenium,TikhomirovSergey/selenium,joshmgrant/selenium,Jarob22/selenium,davehunt/selenium,DrMarcII/selenium,asashour/selenium,lmtierney/selenium,HtmlUnit/selenium,GorK-ChO/selenium,carlosroh/selenium,SeleniumHQ/selenium,lmtierney/selenium,carlosroh/selenium,Ardesco/selenium,Tom-Trumper/selenium,Dude-X/selenium,asashour/selenium,gurayinan/selenium,mach6/selenium,5hawnknight/selenium,HtmlUnit/selenium,DrMarcII/selenium,xmhubj/selenium,TikhomirovSergey/selenium,valfirst/selenium,titusfortner/selenium,valfirst/selenium,joshmgrant/selenium,joshbruning/selenium,oddui/selenium,joshbruning/selenium,gurayinan/selenium,Jarob22/selenium,chrisblock/selenium,5hawnknight/selenium,titusfortner/selenium,chrisblock/selenium,jsakamoto/selenium,dibagga/selenium,DrMarcII/selenium,5hawnknight/selenium,markodolancic/selenium,gurayinan/selenium,oddui/selenium,HtmlUnit/selenium,xmhubj/selenium,DrMarcII/selenium,tbeadle/selenium,asashour/selenium,dibagga/selenium,juangj/selenium,Ardesco/selenium,dibagga/selenium,joshbruning/selenium,dibagga/selenium,Jarob22/selenium,5hawnknight/selenium,jsakamoto/selenium,Herst/selenium,xmhubj/selenium,lmtierney/selenium,xsyntrex/selenium,mojwang/selenium,lmtierney/selenium,mach6/selenium,twalpole/selenium,carlosroh/selenium,lmtierney/selenium,GorK-ChO/selenium,titusfortner/selenium,joshmgrant/selenium,twalpole/selenium,Dude-X/selenium,davehunt/selenium,Herst/selenium,krmahadevan/selenium,GorK-ChO/selenium,SeleniumHQ/selenium,asolntsev/selenium