Fig Function In Python Example For Client