Python Convert Binary String To Stringbuffer