Generate Binary String In Python