How To Set Boundaries In Python Class