Python test and lab