add work python rule