Python testing

pytest

Tests with pytest.