Python Create Binary String Problem