Python Get Values From String To Object In Python