pprint: robustify curses initialization curses.setupterm can throw curses.error when e.g. TERM is not set.
pprint: robustify curses initialization
curses.setupterm can throw curses.error when e.g. TERM is not set.

I spot this when doin distributed testing via 'py.test -d' and for me now all
tests pass.

see: #242


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