add chain of responsibility at python