Taking Multiple Inputs In Python Using Global Variables