refactored riemann_tester.ipynb by moving general functions to riemann_tools.py