Get Array Input Value In Python Iteration