Python Extract Character From String