Fix code in sympy/polys/polytools.py to work in Python 2.4/2.5
Fix code in sympy/polys/polytools.py to work in Python 2.4/2.5

drufat/sympy,wyom/sympy,abloomston/sympy,amitjamadagni/sympy,moble/sympy,sampadsaha5/sympy,mafiya69/sympy,kevalds51/sympy,mcdaniel67/sympy,farhaanbukhsh/sympy,postvakje/sympy,lindsayad/sympy,liangjiaxing/sympy,jaimahajan1997/sympy,yashsharan/sympy,sampadsaha5/sympy,shipci/sympy,abloomston/sympy,AunShiLord/sympy,yukoba/sympy,kumarkrishna/sympy,Davidjohnwilson/sympy,shikil/sympy,atsao72/sympy,iamutkarshtiwari/sympy,garvitr/sympy,cccfran/sympy,aktech/sympy,jaimahajan1997/sympy,sahilshekhawat/sympy,Arafatk/sympy,shikil/sympy,atreyv/sympy,wyom/sympy,grevutiu-gabriel/sympy,saurabhjn76/sympy,jerli/sympy,beni55/sympy,vipulroxx/sympy,yashsharan/sympy,ahhda/sympy,hargup/sympy,hrashk/sympy,chaffra/sympy,debugger22/sympy,diofant/diofant,sahmed95/sympy,kaushik94/sympy,kaichogami/sympy,pandeyadarsh/sympy,yukoba/sympy,wyom/sympy,lidavidm/sympy,Designist/sympy,wanglongqi/sympy,liangjiaxing/sympy,dqnykamp/sympy,dqnykamp/sympy,Vishluck/sympy,atreyv/sympy,farhaanbukhsh/sympy,hrashk/sympy,hargup/sympy,liangjiaxing/sympy,drufat/sympy,wanglongqi/sympy,skirpichev/omg,farhaanbukhsh/sympy,toolforger/sympy,kaichogami/sympy,aktech/sympy,Arafatk/sympy,lindsayad/sympy,skidzo/sympy,sampadsaha5/sympy,rahuldan/sympy,MechCoder/sympy,Designist/sympy,sahmed95/sympy,lidavidm/sympy,vipulroxx/sympy,toolforger/sympy,oliverlee/sympy,ga7g08/sympy,jerli/sympy,sunny94/temp,VaibhavAgarwalVA/sympy,beni55/sympy,moble/sympy,Gadal/sympy,kaushik94/sympy,kmacinnis/sympy,kmacinnis/sympy,Mitchkoens/sympy,sunny94/temp,Titan-C/sympy,Davidjohnwilson/sympy,AunShiLord/sympy,kevalds51/sympy,oliverlee/sympy,hargup/sympy,drufat/sympy,emon10005/sympy,Vishluck/sympy,Vishluck/sympy,Gadal/sympy,Designist/sympy,Curious72/sympy,Mitchkoens/sympy,abhiii5459/sympy,amitjamadagni/sympy,grevutiu-gabriel/sympy,jbbskinny/sympy,MechCoder/sympy,debugger22/sympy,meghana1995/sympy,kevalds51/sympy,pandeyadarsh/sympy,hrashk/sympy,ChristinaZografou/sympy,skidzo/sympy,Mitchkoens/sympy,garvitr/sympy,pandeyadarsh/sympy,jbbskinny/sympy,bukzor/sympy,kaichogami/sympy,wanglongqi/sympy,moble/sympy,mafiya69/sympy,souravsingh/sympy,chaffra/sympy,kmacinnis/sympy,cccfran/sympy,abhiii5459/sympy,asm666/sympy,kumarkrishna/sympy,MechCoder/sympy,pbrady/sympy,Curious72/sympy,saurabhjn76/sympy,lindsayad/sympy,cswiercz/sympy,sahilshekhawat/sympy,jamesblunt/sympy,AkademieOlympia/sympy,jaimahajan1997/sympy,jbbskinny/sympy,Shaswat27/sympy,kumarkrishna/sympy,meghana1995/sympy,rahuldan/sympy,postvakje/sympy,skidzo/sympy,ga7g08/sympy,grevutiu-gabriel/sympy,cswiercz/sympy,ChristinaZografou/sympy,AkademieOlympia/sympy,shikil/sympy,jerli/sympy,oliverlee/sympy,AunShiLord/sympy,sahilshekhawat/sympy,VaibhavAgarwalVA/sympy,MridulS/sympy,MridulS/sympy,asm666/sympy,maniteja123/sympy,dqnykamp/sympy,mafiya69/sympy,yashsharan/sympy,abloomston/sympy,jamesblunt/sympy,Gadal/sympy,saurabhjn76/sympy,maniteja123/sympy,VaibhavAgarwalVA/sympy,iamutkarshtiwari/sympy,atreyv/sympy,Arafatk/sympy,meghana1995/sympy,mcdaniel67/sympy,AkademieOlympia/sympy,atsao72/sympy,sahmed95/sympy,garvitr/sympy,toolforger/sympy,madan96/sympy,lidavidm/sympy,Sumith1896/sympy,emon10005/sympy,madan96/sympy,Curious72/sympy,debugger22/sympy,souravsingh/sympy,Sumith1896/sympy,postvakje/sympy,maniteja123/sympy,MridulS/sympy,rahuldan/sympy,madan96/sympy,ga7g08/sympy,mcdaniel67/sympy,Titan-C/sympy,cccfran/sympy,abhiii5459/sympy,atsao72/sympy,Shaswat27/sympy,ChristinaZografou/sympy,pbrady/sympy,kaushik94/sympy,emon10005/sympy,shipci/sympy,bukzor/sympy,sunny94/temp,cswiercz/sympy,Sumith1896/sympy,Davidjohnwilson/sympy,beni55/sympy,aktech/sympy,shipci/sympy,Shaswat27/sympy,ahhda/sympy,vipulroxx/sympy,Titan-C/sympy,ahhda/sympy,iamutkarshtiwari/sympy,yukoba/sympy,jamesblunt/sympy,bukzor/sympy,souravsingh/sympy,asm666/sympy,pbrady/sympy,chaffra/sympy