changed name of isInRange to __contains__ so that the in operator can be used. Also replaced tabs with spaces for PEP-8 consistency.