a bit of input validation
more pythonic base class properties