Adding implementations for python test functions.