Input Array In Python Using Global Variables