Python examples and testing