Fix the failing python 3 printing tests.
Fix the failing python 3 printing tests.

In python 3, printing tests fail if stdout uses an encoding
different from utf8. The test runner is modified to take the
encoding of stdout into account.

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