Python Read Binary String Without Consecutive Ones