Python test and samples