Pass bytes to tempfile.NamedTemporaryFile().write()
Pass bytes to tempfile.NamedTemporaryFile().write()

This method takes bytes as input; the current code fails in Python 3.

Closes-Bug: #1281372
Change-Id: I070d9e9e07523c124f3168b55048fb9d1b338f69

openstack/python-glanceclient,varunarya10/python-glanceclient,alexpilotti/python-glanceclient,JioCloud/python-glanceclient,JioCloud/python-glanceclient,openstack/python-glanceclient,varunarya10/python-glanceclient,mmasaki/python-glanceclient,alexpilotti/python-glanceclient,mmasaki/python-glanceclient,klmitch/python-glanceclient,klmitch/python-glanceclient