Vba Excel Loop While Python Function