streams: Make .write() support arbitrary objects with buffer interface.
streams: Make .write() support arbitrary objects with buffer interface.

This in particular fixes writing str vs bytes.

henriknelson/micropython,ericsnowcurrently/micropython,skybird6672/micropython,turbinenreiter/micropython,alex-march/micropython,blazewicz/micropython,firstval/micropython,ahotam/micropython,toolmacher/micropython,praemdonck/micropython,kerneltask/micropython,SHA2017-badge/micropython-esp32,slzatz/micropython,alex-march/micropython,noahchense/micropython,ahotam/micropython,blazewicz/micropython,EcmaXp/micropython,jlillest/micropython,alex-robbins/micropython,tdautc19841202/micropython,tobbad/micropython,micropython/micropython-esp32,matthewelse/micropython,warner83/micropython,selste/micropython,noahwilliamsson/micropython,PappaPeppar/micropython,MrSurly/micropython-esp32,lbattraw/micropython,suda/micropython,tdautc19841202/micropython,torwag/micropython,puuu/micropython,blazewicz/micropython,swegener/micropython,misterdanb/micropython,ganshun666/micropython,xyb/micropython,adafruit/micropython,danicampora/micropython,ganshun666/micropython,omtinez/micropython,Peetz0r/micropython-esp32,emfcamp/micropython,xyb/micropython,xyb/micropython,HenrikSolver/micropython,bvernoux/micropython,Peetz0r/micropython-esp32,rubencabrera/micropython,neilh10/micropython,ChuckM/micropython,jlillest/micropython,ChuckM/micropython,swegener/micropython,xhat/micropython,slzatz/micropython,ChuckM/micropython,dxxb/micropython,galenhz/micropython,oopy/micropython,jmarcelino/pycom-micropython,praemdonck/micropython,KISSMonX/micropython,orionrobots/micropython,xhat/micropython,mianos/micropython,lbattraw/micropython,pozetroninc/micropython,mgyenik/micropython,praemdonck/micropython,heisewangluo/micropython,ernesto-g/micropython,infinnovation/micropython,SHA2017-badge/micropython-esp32,toolmacher/micropython,toolmacher/micropython,MrSurly/micropython,danicampora/micropython,ceramos/micropython,turbinenreiter/micropython,utopiaprince/micropython,pramasoul/micropython,SungEun-Steve-Kim/test-mp,vitiral/micropython,tralamazza/micropython,mgyenik/micropython,swegener/micropython,selste/micropython,jimkmc/micropython,tdautc19841202/micropython,torwag/micropython,galenhz/micropython,deshipu/micropython,redbear/micropython,blmorris/micropython,mianos/micropython,hiway/micropython,galenhz/micropython,KISSMonX/micropython,infinnovation/micropython,lowRISC/micropython,adamkh/micropython,ganshun666/micropython,TDAbboud/micropython,emfcamp/micropython,feilongfl/micropython,dxxb/micropython,blmorris/micropython,ericsnowcurrently/micropython,dinau/micropython,mpalomer/micropython,slzatz/micropython,pfalcon/micropython,cwyark/micropython,matthewelse/micropython,mianos/micropython,mianos/micropython,omtinez/micropython,jimkmc/micropython,deshipu/micropython,alex-robbins/micropython,dmazzella/micropython,martinribelotta/micropython,blazewicz/micropython,methoxid/micropystat,noahchense/micropython,noahwilliamsson/micropython,chrisdearman/micropython,tobbad/micropython,Peetz0r/micropython-esp32,selste/micropython,cnoviello/micropython,SHA2017-badge/micropython-esp32,utopiaprince/micropython,rubencabrera/micropython,danicampora/micropython,KISSMonX/micropython,adamkh/micropython,kostyll/micropython,omtinez/micropython,ceramos/micropython,ahotam/micropython,henriknelson/micropython,torwag/micropython,skybird6672/micropython,dxxb/micropython,MrSurly/micropython-esp32,mhoffma/micropython,hiway/micropython,pfalcon/micropython,tobbad/micropython,bvernoux/micropython,ryannathans/micropython,danicampora/micropython,stonegithubs/micropython,xhat/micropython,hosaka/micropython,rubencabrera/micropython,utopiaprince/micropython,cnoviello/micropython,ahotam/micropython,tralamazza/micropython,stonegithubs/micropython,kerneltask/micropython,ryannathans/micropython,mianos/micropython,alex-march/micropython,xuxiaoxin/micropython,Peetz0r/micropython-esp32,adafruit/circuitpython,neilh10/micropython,mgyenik/micropython,aethaniel/micropython,warner83/micropython,AriZuu/micropython,adamkh/micropython,matthewelse/micropython,skybird6672/micropython,Peetz0r/micropython-esp32,kerneltask/micropython,xuxiaoxin/micropython,blazewicz/micropython,skybird6672/micropython,lowRISC/micropython,drrk/micropython,alex-march/micropython,alex-robbins/micropython,deshipu/micropython,MrSurly/micropython-esp32,Timmenem/micropython,HenrikSolver/micropython,turbinenreiter/micropython,bvernoux/micropython,cloudformdesign/micropython,puuu/micropython,dxxb/micropython,jmarcelino/pycom-micropython,aethaniel/micropython,emfcamp/micropython,hiway/micropython,rubencabrera/micropython,ericsnowcurrently/micropython,vitiral/micropython,cnoviello/micropython,MrSurly/micropython-esp32,martinribelotta/micropython,EcmaXp/micropython,pramasoul/micropython,lowRISC/micropython,selste/micropython,PappaPeppar/micropython,bvernoux/micropython,Vogtinator/micropython,vitiral/micropython,orionrobots/micropython,EcmaXp/micropython,dmazzella/micropython,mgyenik/micropython,HenrikSolver/micropython,ryannathans/micropython,redbear/micropython,firstval/micropython,EcmaXp/micropython,cwyark/micropython,ernesto-g/micropython,hosaka/micropython,xhat/micropython,heisewangluo/micropython,noahchense/micropython,dhylands/micropython,jmarcelino/pycom-micropython,matthewelse/micropython,ChuckM/micropython,ceramos/micropython,dxxb/micropython,HenrikSolver/micropython,vitiral/micropython,Vogtinator/micropython,jlillest/micropython,MrSurly/micropython,vriera/micropython,oopy/micropython,aethaniel/micropython,blmorris/micropython,ryannathans/micropython,trezor/micropython,hiway/micropython,tobbad/micropython,skybird6672/micropython,kerneltask/micropython,blmorris/micropython,pozetroninc/micropython,xhat/micropython,redbear/micropython,pozetroninc/micropython,omtinez/micropython,alex-robbins/micropython,puuu/micropython,xuxiaoxin/micropython,turbinenreiter/micropython,ericsnowcurrently/micropython,slzatz/micropython,KISSMonX/micropython,suda/micropython,praemdonck/micropython,Timmenem/micropython,supergis/micropython,deshipu/micropython,tralamazza/micropython,xyb/micropython,TDAbboud/micropython,ganshun666/micropython,vriera/micropython,TDAbboud/micropython,dhylands/micropython,trezor/micropython,emfcamp/micropython,heisewangluo/micropython,vriera/micropython,dmazzella/micropython,adafruit/micropython,redbear/micropython,paul-xxx/micropython,paul-xxx/micropython,hosaka/micropython,HenrikSolver/micropython,aethaniel/micropython,noahchense/micropython,adafruit/circuitpython,ruffy91/micropython,SHA2017-badge/micropython-esp32,lowRISC/micropython,PappaPeppar/micropython,misterdanb/micropython,adamkh/micropython,dinau/micropython,orionrobots/micropython,suda/micropython,orionrobots/micropython,chrisdearman/micropython,EcmaXp/micropython,ryannathans/micropython,toolmacher/micropython,stonegithubs/micropython,mpalomer/micropython,xuxiaoxin/micropython,feilongfl/micropython,cwyark/micropython,oopy/micropython,rubencabrera/micropython,warner83/micropython,utopiaprince/micropython,adafruit/circuitpython,dinau/micropython,orionrobots/micropython,infinnovation/micropython,jlillest/micropython,drrk/micropython,noahchense/micropython,adafruit/circuitpython,vriera/micropython,trezor/micropython,utopiaprince/micropython,heisewangluo/micropython,alex-robbins/micropython,dmazzella/micropython,ahotam/micropython,ganshun666/micropython,MrSurly/micropython,kostyll/micropython,vriera/micropython,firstval/micropython,ernesto-g/micropython,adafruit/micropython,dinau/micropython,torwag/micropython,neilh10/micropython,jmarcelino/pycom-micropython,kostyll/micropython,SungEun-Steve-Kim/test-mp,hiway/micropython,firstval/micropython,xuxiaoxin/micropython,methoxid/micropystat,oopy/micropython,infinnovation/micropython,warner83/micropython,noahwilliamsson/micropython,paul-xxx/micropython,slzatz/micropython,deshipu/micropython,adafruit/micropython,feilongfl/micropython,feilongfl/micropython,hosaka/micropython,Timmenem/micropython,TDAbboud/micropython,mpalomer/micropython,pozetroninc/micropython,drrk/micropython,cnoviello/micropython,mgyenik/micropython,blmorris/micropython,kostyll/micropython,henriknelson/micropython,MrSurly/micropython,micropython/micropython-esp32,mhoffma/micropython,adamkh/micropython,cnoviello/micropython,dhylands/micropython,warner83/micropython,praemdonck/micropython,mhoffma/micropython,tralamazza/micropython,PappaPeppar/micropython,KISSMonX/micropython,ceramos/micropython,micropython/micropython-esp32,dhylands/micropython,tdautc19841202/micropython,pramasoul/micropython,kerneltask/micropython,pfalcon/micropython,methoxid/micropystat,supergis/micropython,adafruit/circuitpython,supergis/micropython,ruffy91/micropython,paul-xxx/micropython,heisewangluo/micropython,dinau/micropython,SungEun-Steve-Kim/test-mp,suda/micropython,emfcamp/micropython,mhoffma/micropython,redbear/micropython,cloudformdesign/micropython,tuc-osg/micropython,ChuckM/micropython,misterdanb/micropython,drrk/micropython,adafruit/micropython,martinribelotta/micropython,matthewelse/micropython,firstval/micropython,lbattraw/micropython,chrisdearman/micropython,ericsnowcurrently/micropython,swegener/micropython,SungEun-Steve-Kim/test-mp,chrisdearman/micropython,pozetroninc/micropython,henriknelson/micropython,ernesto-g/micropython,cloudformdesign/micropython,methoxid/micropystat,supergis/micropython,cwyark/micropython,jimkmc/micropython,henriknelson/micropython,trezor/micropython,jlillest/micropython,martinribelotta/micropython,ruffy91/micropython,cwyark/micropython,danicampora/micropython,noahwilliamsson/micropython,adafruit/circuitpython,turbinenreiter/micropython,suda/micropython,AriZuu/micropython,martinribelotta/micropython,tobbad/micropython,MrSurly/micropython,torwag/micropython,SungEun-Steve-Kim/test-mp,tuc-osg/micropython,hosaka/micropython,pfalcon/micropython,matthewelse/micropython,micropython/micropython-esp32,TDAbboud/micropython,neilh10/micropython,PappaPeppar/micropython,feilongfl/micropython,noahwilliamsson/micropython,lbattraw/micropython,xyb/micropython,puuu/micropython,chrisdearman/micropython,AriZuu/micropython,toolmacher/micropython,stonegithubs/micropython,aethaniel/micropython,oopy/micropython,bvernoux/micropython,jmarcelino/pycom-micropython,omtinez/micropython,swegener/micropython,mpalomer/micropython,tuc-osg/micropython,misterdanb/micropython,infinnovation/micropython,tuc-osg/micropython,Timmenem/micropython,MrSurly/micropython-esp32,paul-xxx/micropython,cloudformdesign/micropython,mpalomer/micropython,pramasoul/micropython,galenhz/micropython,stonegithubs/micropython,SHA2017-badge/micropython-esp32,trezor/micropython,AriZuu/micropython,Vogtinator/micropython,ruffy91/micropython,ruffy91/micropython,methoxid/micropystat,supergis/micropython,tdautc19841202/micropython,dhylands/micropython,drrk/micropython,selste/micropython,alex-march/micropython,puuu/micropython,Vogtinator/micropython,pramasoul/micropython,lowRISC/micropython,micropython/micropython-esp32,jimkmc/micropython,jimkmc/micropython,kostyll/micropython,neilh10/micropython,Timmenem/micropython,lbattraw/micropython,ernesto-g/micropython,mhoffma/micropython,cloudformdesign/micropython,AriZuu/micropython,galenhz/micropython,misterdanb/micropython,tuc-osg/micropython,ceramos/micropython,pfalcon/micropython,Vogtinator/micropython,vitiral/micropython