Python test framework