For Loop In Python User Interface