Internal code move: move code for pytest.approx/pytest.raises to own files in order to cut down the size of python.py