Python Extract Data From String To Array