How To Handle Missing Value In Python Iteration