def convert_to_py_error(error_message):
    """
    Raise specific exceptions for ease of error handling
    """
    message = error_message.lower()
    for err_msg, err_type in ERR_MSGS:
        if err_msg in message:
            return err_type(error_message)
    else:
        return IndicoError(error_message)