How to Modify Element Value Directly in a Python Array