title: How to generate PyKnow Rule dynamically?
body: <p>I want to generate pyknow rules dynamically
  instead of </p>
  
  <pre><code>class RuleEngine(KnowledgeEngine):
      @Rule(AS.light &lt;&lt; Light(color='yellow'))
      def accept(self, light):
          print(light['color'])
  </code></pre>
  
  <p>something like</p>
  
  <pre><code>class RuleEngine(KnowledgeEngine):
      def accept(self, light):
          print(light['color'])
  
      def __init__(self, data):
          self.generate_rule(**data, self.accept)
  </code></pre>
  
  <p>data structure:</p>
  
  <pre><code>{'rule1': {color='green'}, 'rule2': {color='red'}
  </code></pre>