Use default argument for HardLimitError's state
Streamline session imports and docstring
Do Pythonic string comparison