python code of client side to test