(exp(x) / (1 + exp(2x))).subs(exp(x), u)

(exp(x) / (1 + exp(2x))).subs(exp(x), u)

can't multiply sequence by non-int of type 'instancemethod'

See what
Wolfram|Alpha has to say.

Want a full Python shell? Use SymPy Live.