Added 'tangent' function (mirrors 'gradient' function)
Updated Python examples, #884