<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _load_rules(self):
 """ Loads the rules from the SSH-Connection """

        with self._sftp_connection.open(self.RULE_PATH) as file:
            data = file.read()
        lines = (
            line.strip()
            for line in data.split('\n')
        )
        rule_strings = (
            line for line in lines
            if len(line) > 0
        )
        rules = (
            Rule.parse(rule_string)
            for rule_string in rule_strings
        )
        self._rules = [
            rule
            for rule in rules
            if rule is not None
        ]