Generate Binary String Python