https://code.google.com/p/sympy/issues/detail?id=3698 for the Piecewise issue.