human
Complete this python program:
def TR1(rv):
assistant
#Here is the Python program you requested.

    """Replace sec, csc with 1/cos, 1/sin
    Examples
    >>> from sympy.simplify.fu import TR1, sec, csc
    >>> from sympy.abc import x
    >>> TR1(2*csc(x) + sec(x))
    1/cos(x) + 2/sin(x)
    """
    def f(rv):
        if (rv.func is sec):
            a = rv.args[0]
            return (S.One / cos(a))
        elif (rv.func is csc):
            a = rv.args[0]
            return (S.One / sin(a))
        return rv
    return bottom_up(rv, f)