Python Get Variable From String To Boolean