How To Set Input Range In Python