Input Function In Python Using Global Variables