Python Write Variable To Binary String