Add timeout option and examples to client.py