Fix PEP8: W602 deprecated form of raising exception
Lower PEP8 threshold to 5 violations