add python3 support

Make the carbon_client python3-compatible