How To Set Boundaries In Python