Therefore I am adding the following code snip.

```python
    from sympy import Integral, Sum
    for coeff in coeffs:
        if isinstance(coeff, Integral) or isinstance(coeff, Sum):
            co = coeff.doit()
            loc = coeffs.index(coeff)
            coeffs[loc] = co
```
And again modified ```free_symbols``` over ```atoms(Symbol)```