py3 compatibility fix

Fixes https://github.com/paypal/rest-api-sdk-python/issues/53.