Python Get Variable From String