Source code for python test.