Fixes to curl and python examples