python client example + security