Raising exceptions or returning error objects in Python – lukeplant.me.uk