Java Rule Engine Python Code For Fibonacci