how to take continuous input in python