Array Input In Python Using Global Variables