Variable Number Of Inputs Python