Python Modify Array Element Definition Science