fixed pylint errors in differentation