Python Write Text Array To Object In Python