-mid + 1
Small pep8 issue, but sympy is strict about such things :-)
ping @raoulb