How To Set Limits In Python