Actually if instead of \frac{}{} I use \over to write fractions, for example
ex:={a+b+c}\over b;
and then use collect factors, it does nothing. If I use simplify(ex) it shows
{\color{red}{\begin{verbatim}SyntaxError: unexpected character after line continuation character (, line 1)
At:
/usr/lib/python3/dist-packages/sympy/parsing/sympy_parser.py(733): eval_expr
/usr/lib/python3/dist-packages/sympy/parsing/sympy_parser.py(820): parse_expr
(2):
\end{verbatim}}}
Its not a major problem as we can use \frac{}{}, but it would be nice if this can be corrected at some point of time.