how to take unknown number of inputs in python